Exemplo n.º 1
0
        public string Create(CustomerValue Value)
        {
            var customer = new Customer(this.CustomerRepository);

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