public async Task<Customer> InsertCustomerAsync(Customer customer)
{
_context.Add(customer);
try
{
await _context.SaveChangesAsync();
}
catch (System.Exception exp)
{
_logger.LogError($"Error in {nameof(InsertCustomerAsync)}: " + exp.Message);
}
return customer;
}