public ActionResult Create(FormCollection collection)
 {
     // TODO: Add insert logic here
     if (ModelState.IsValid)
     {
         var cp = new DieuKienShop();
         // TODO: Add insert logic here
         cp.MoTa = collection["MoTa"];
         DKSRes.Add(cp);
         DKSRes.Save();
         return RedirectToAction("Index");
     }
     else
     {
         return View();
     }
 }
Example #2
0
 public void Delete(DieuKienShop dm)
 {
     en.DeleteObject(dm);
 }
Example #3
0
 public void Add(DieuKienShop dm)
 {
     en.AddObject("DieuKienShop", dm);
 }
 //
 // GET: /DieuKien/Create
 public ActionResult Create()
 {
     var cp = new DieuKienShop();
     return View(cp);
 }