public ActionResult Edit(int id, Produit_Medicaux pdt) { //pdts.Update(pdt); //pdts.Commit(); //return RedirectToAction("Index"); //Payment payment = new Payment(); //pdt = pdts.GetById(id); //payment.Status = true; ////db.Entry(payment).State = EntityState.Modified; ////db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Create(Produit_Medicaux pdt) { pdts.Add(pdt); pdts.Commit(); return(RedirectToAction("Index")); }