Beispiel #1
0
        public async Task <int> DeleteCustomer(CustomerModel model)
        {
            if (model?.CustomerId == null)
            {
                throw new InvalidOperationException("Customer Id");
            }
            var customerEntity =
                new Customer {
                CustomerId = model.CustomerId, CustomerName = model.CustomerName
            };

            return(await _demoService.DeleteCustomer(customerEntity));
        }