Skip to content

Commit bbb8863

Browse files
committed
Removing UnitOfWork usage
1 parent a131da0 commit bbb8863

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

Pages/Device/Index.cshtml.cs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,7 @@ public class IndexModel(IDeviceService service) : PageModel
1010

1111
public async void OnGet()
1212
{
13-
try
14-
{
15-
Devices = await _service.GetAllDevices();
16-
}
17-
catch (Exception ex)
18-
{
19-
TempData["Message"] = ex.Message;
20-
}
13+
Devices = await _service.GetAllDevices();
2114
}
2215
}
2316
}

0 commit comments

Comments
 (0)