コード例 #1
0
        public async Task <Response <OfficeResponse> > CreateAsync(Office office)
        {
            var result = await officeRepository.CreateAsync(automapper.Map <DbOffice>(office));

            var response = new Response <OfficeResponse>(automapper.Map <OfficeResponse>(result));

            return(response);
        }