Beispiel #1
0
        public async Task <ObjectResult> CreateCustomerAsync([FromBody] GeneralCustomerRequest request)
        {
            Customer result = await _customerServices.CustomerRepository.CreateAsync(request.ToDTO());

            await _customerServices.CommitChanges();

            return(Ok(result));
        }