コード例 #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"));
 }