コード例 #1
0
        public async Task <IActionResult> CreateCustomer([FromBody] CustomerMetaModel customerMeta)
        {
            var result = await _customerService.InsertAsync(customerMeta);

            return(Ok(result));
        }
コード例 #2
0
        public async Task <ReturnResponse <Customer> > InsertAsync(CustomerMetaModel customerMeta)
        {
            var customer = _mapper.Map <Customer>(customerMeta);

            return(await _customerRepository.InsertAsync(customer));
        }