public string Create(CustomerValue Value)
        {
            var customer = new Customer(this.CustomerRepository);

            this.CustomerRepository.CreateCustomer(Value);
            return Value.CustomerID;
        }
 public void CreateCustomer(CustomerValue Customer)
 {
     Context.Customers.Add(Customer);
     Context.SaveChanges();
 }
Example #3
0
 public void Load(string CustomerID)
 {
     this._CustomerValue = this._CustomerRepository.GetCustomer(CustomerID);
 }
Example #4
0
 public void Create(CustomerValue Value)
 {
     this._CustomerRepository.CreateCustomer(Value);
 }