Example #1
0
 public void Edit(Rate rate)
 {
     var product = Get(rate.SID);
     if (product != null)
     {
         product.Price = rate.Price;
         Edit(product);
     }
 }
Example #2
0
 public int Add(Rate rate)
 {
     using (var db = GetDataContext())
     {
         db.Rates.Add(rate);
         db.SaveChanges();
     }
     return rate.ID;
 }
Example #3
0
 public ActionResult AddRate(Rate rate)
 {
     Core.RateManager.Add(rate);
     Core.ProductManager.Edit(rate);
     return RedirectToAction("Index");
 }