Example #1
0
        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));
        }
Example #2
0
 public Sector GetSector(long sectorId)
 {
     return(_sectorService.GetSector(sectorId));
 }