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);
 }
Exemple #4
0
 public static void NotifyOrderIsBeingProcessed(CustomerBase customer, ProductBase product)
 {
     NotifyOrderChangedState(customer, product, "Processing");
 }
Exemple #5
0
 public static void NotifyOrderChangedState(CustomerBase customer, ProductBase product, string state)
 {
     Notify(customer.Email, string.Format(OrderChangedStateMessageFormat, product.Id, state));
 }
Exemple #6
0
 public static void NotifyOrderCantBeHeld(CustomerBase c, ProductBase product)
 {
     Notify(c.Email, string.Format(OrderCantBeHeldMessageFormat, product.Id));
 }