// GET api/<controller> public async Task <IEnumerable <LetterOwnerDtoWithPicture> > Post([FromBody] UserWithBranchesDto dto) { var branchDtos = await BranchService.GetBranchDtos(dto.BranchIds); var user = new UserDto() { Id = dto.UserId }; return(await LetterOwnerService.GetOwnersWithPicture(user, branchDtos)); }
public async Task <IEnumerable <BranchDto> > Post([FromBody] UserWithBranchesDto dto) { var branchDtos = await BranchService.GetBranchDtos(dto.BranchIds); return(branchDtos); }