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); }
public void SaveCustomer(Customer customer) { throw new NotImplementedException(); }
public void SaveCustomer(Customer customer) { CustomerDbContext dbContect = new CustomerDbContext(); dbContect.Customers.Add(customer); dbContect.SaveChanges(); }