Example #1
0
        public async Task <ActionResult <SheriffActingRankDto> > UpdateSheriffActingRank(SheriffActingRankDto sheriffActingRankDto, bool overrideConflicts = false)
        {
            var sheriffActingRank        = sheriffActingRankDto.Adapt <SheriffActingRank>();
            var updatedSheriffActingRank = await SheriffService.UpdateSheriffActingRank(DutyRosterService, ShiftService, sheriffActingRank, overrideConflicts);

            return(Ok(updatedSheriffActingRank.Adapt <SheriffActingRankDto>()));
        }