コード例 #1
0
        // 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));
        }
コード例 #2
0
        public async Task <IEnumerable <BranchDto> > Post([FromBody] UserWithBranchesDto dto)
        {
            var branchDtos = await BranchService.GetBranchDtos(dto.BranchIds);

            return(branchDtos);
        }