public void AddNewCustomer(Customer customer) { var isValidCustomer = _customerValidation.ValidateCustomer(customer); _db.Customers.Add(customer); _db.SaveChanges(); }
public void AddCustomer(Customer dataModel) { if (customerValidation.ValidateCustomer(dataModel)) { customerDAL.Add(dataModel); } }