Beispiel #1
0
        public IActionResult GetShift()
        {
            if (_userService.IsOfficer())
            {
                IEnumerable <BasePolicemanShiftVM> shifts = _policePresentation.GetShifts();
                return(PartialView("Views/Shared/Police/ShiftList.cshtml", shifts));
            }

            if (_userService.IsSheriff())
            {
                IEnumerable <SheriffShiftVM> shifts = _policePresentation.GetOfficerShift();
                return(PartialView("Views/Shared/Police/OfficerShiftsList.cshtml", shifts));
            }

            return(NotFound());
        }