예제 #1
0
        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"));
        }
예제 #2
0
 public ActionResult Create(Produit_Medicaux pdt)
 {
     pdts.Add(pdt);
     pdts.Commit();
     return(RedirectToAction("Index"));
 }