Esempio n. 1
0
        public ActionResult Index(string id)
        {
            if (string.IsNullOrWhiteSpace(id))
            {
                id = ((IList<NormClass>)ViewData["ParentNormClassList"])[0].NormClassId.ToString();
                id = new NormClassModel().EncryptId(id);
            }

            return View(new NormClassModel(id));
        }
 public ActionResult Edit(NormClassModel model, string cdts)
 {
     GetConditions(cdts);
     model.Update();
     return View("AdminIndex");
 }
 public ActionResult Create(NormClassModel model, string cdts)
 {
     GetConditions(cdts);
     model.Insert();
     return View("AdminIndex");
 }