Exemplo n.º 1
0
 public static void NotifyOrderIsBeingProcessed(CustomerBase customer, ProductBase product)
 {
     NotifyOrderChangedState(customer, product, "Processing");
 }
Exemplo n.º 2
0
 public void Update(CustomerBase obj)
 {
     throw new NotSupportedException();
 }
Exemplo n.º 3
0
 public static void NotifyOrderChangedState(CustomerBase customer, ProductBase product, string state)
 {
     Notify(customer.Email, string.Format(OrderChangedStateMessageFormat, product.Id, state));
 }
Exemplo n.º 4
0
 public static void NotifyOrderCantBeHeld(CustomerBase c, ProductBase product)
 {
     Notify(c.Email, string.Format(OrderCantBeHeldMessageFormat, product.Id));
 }
Exemplo n.º 5
0
 public void Update(CustomerBase obj)
 {
 }
Exemplo n.º 6
0
 public void Delete(CustomerBase obj)
 {
     _ctx.Customer.Remove((Customer)obj);
 }
Exemplo n.º 7
0
 public void Create(CustomerBase obj)
 {
     _ctx.Customer.Add((Customer)obj);
 }