Ejemplo n.º 1
0
 public void SaveCustomer(CustomerVM customer)
 {
     Customer _customer = new Customer {
      CustomerName = customer.CustomerName,
      ContractName =customer.ContractName,
      Address = customer.Address,
      City = customer.City,
      PostalCode = customer.PostalCode,
      Country = customer.Country
     };
     _repository.SaveCustomer(_customer);
 }
Ejemplo n.º 2
0
 public void SaveCustomer(Customer customer)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 3
0
 public void SaveCustomer(Customer customer)
 {
     CustomerDbContext dbContect = new CustomerDbContext();
     dbContect.Customers.Add(customer);
     dbContect.SaveChanges();
 }