Example #1
0
        public void AddNewCustomer(Customer customer)
        {
            var isValidCustomer = _customerValidation.ValidateCustomer(customer);

            _db.Customers.Add(customer);
            _db.SaveChanges();
        }
Example #2
0
 public void AddCustomer(Customer dataModel)
 {
     if (customerValidation.ValidateCustomer(dataModel))
     {
         customerDAL.Add(dataModel);
     }
 }