public bool Register(CustomerRegDTO customerRegDto) { Models.Customer customer = new Models.Customer(); string customerId = Guid.NewGuid().ToString(); customer.customerId = customerId; customer.email = customerRegDto.email; customer.name = customerRegDto.name; customer.password = customerRegDto.password; db.Customers.Add(customer); db.SaveChanges(); return(true); }
public Boolean Register(CustomerRegDTO customerRegDto) { return(_customerService.Register(customerRegDto)); }