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