Beispiel #1
0
        public static CustomerEntity Update(this CustomerEntity original, ICustomerEditable update)
        {
            original.Adress      = update.Adress;
            original.PhoneNumber = update.PhoneNumber;

            return(original);
        }
Beispiel #2
0
        public Customer UpdateCustomer(Guid id, ICustomerEditable customer)
        {
            var current = Context.Customers.Single(c => c.Id == id);

            current = current.Update(customer);

            return(current.Map());
        }
Beispiel #3
0
 public Customer EditCustomer(Guid id, ICustomerEditable customer)
 {
     return(CustomerAdapter.UpdateCustomer(id, customer));
 }