public async Task <IActionResult> Edit(int?id) { if (id == null) { return(NotFound()); } var viewModel = await _service.GetSector(id); if (viewModel == null) { return(NotFound()); } return(View(viewModel)); }
public Sector GetSector(long sectorId) { return(_sectorService.GetSector(sectorId)); }