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