public async Task <ActionResult <SheriffDto> > AddSheriff(CreateSheriffDto sheriffDto) { if (!PermissionDataFiltersExtensions.HasAccessToLocation(User, Db, sheriffDto.HomeLocationId)) { return(Forbid()); } var sheriff = sheriffDto.Adapt <Sheriff>(); sheriff = await SheriffService.AddSheriff(sheriff); return(Ok(sheriff.Adapt <SheriffDto>())); }