示例#1
0
        public async Task RegisterCustomerAsync(BestEats.Logic.Customer DBcustomer)
        {
            await _context.Customers.AddAsync(new Customer()
            {
                FullName     = DBcustomer.FullName,
                CustPassword = DBcustomer.CustPassword
            });

            await _context.SaveChangesAsync();
        }
示例#2
0
        public void RegisterCustomer(BestEats.Logic.Customer DBcustomer)
        {
            Customer customer = new Customer
            {
                FullName     = DBcustomer.FullName,
                CustPassword = DBcustomer.CustPassword
            };

            _context.Add(customer);
            Save();
        }
示例#3
0
 public async Task RegisterCustomer([Required] BestEats.Logic.Customer cust)
 => await _customerRepo.RegisterCustomerAsync(cust);