コード例 #1
0
        public async Task <ApiResponse> GetOfficeByName(string name)
        {
            var office = await _officeRepo.FindOfficeByName(name);

            if (office == null)
            {
                return(new ApiResponse(404));
            }
            var officeTransferDTOs = _mapper.Map <OfficeTransferDTO>(office);

            return(new ApiOkResponse(officeTransferDTOs));
        }