Esempio n. 1
0
 public void Update(ProductBase obj)
 {
     _ctx.sp_UpdateProduct(obj.Id, obj.AvailableAmount);
 }
Esempio n. 2
0
 public void Delete(ProductBase obj)
 {
     _ctx.sp_DeleteProduct(obj.Id);
 }
Esempio n. 3
0
 public void Create(ProductBase obj)
 {
     _ctx.sp_InsertProduct(obj.Id, obj.Name, obj.SupplierId, obj.Price, obj.AvailableAmount);
 }
Esempio n. 4
0
 public static void NotifyOrderIsBeingProcessed(CustomerBase customer, ProductBase product)
 {
     NotifyOrderChangedState(customer, product, "Processing");
 }
Esempio n. 5
0
 public static void NotifyOrderChangedState(CustomerBase customer, ProductBase product, string state)
 {
     Notify(customer.Email, string.Format(OrderChangedStateMessageFormat, product.Id, state));
 }
Esempio n. 6
0
 public static void NotifyOrderCantBeHeld(CustomerBase c, ProductBase product)
 {
     Notify(c.Email, string.Format(OrderCantBeHeldMessageFormat, product.Id));
 }