public async Task RegisterCustomerAsync(BestEats.Logic.Customer DBcustomer) { await _context.Customers.AddAsync(new Customer() { FullName = DBcustomer.FullName, CustPassword = DBcustomer.CustPassword }); await _context.SaveChangesAsync(); }
public void RegisterCustomer(BestEats.Logic.Customer DBcustomer) { Customer customer = new Customer { FullName = DBcustomer.FullName, CustPassword = DBcustomer.CustPassword }; _context.Add(customer); Save(); }
public async Task RegisterCustomer([Required] BestEats.Logic.Customer cust) => await _customerRepo.RegisterCustomerAsync(cust);