/// <summary> /// Adding New Customer. /// </summary> /// <param name="customer"> Customer object as input to Ef for insertion</param> /// <returns>Returns List of Updated customers</returns> public async Task <List <Customer> > AddDeliveryDetails(Customer customer) { _context.Attach(customer); _context.SaveChanges(); _logger.LogInformation("Delivery details have been successfully Added."); return(await Task.FromResult(_context.Customers.Include(x => x.Address).ToList()).ConfigureAwait(false)); }