예제 #1
0
        public ActionResult AddSKK(SKKViewModel model)
        {
            if (!ModelState.IsValid)
                return View(model);

            model.AddSKK();
            return RedirectToAction("SKK");
        }
예제 #2
0
 public ActionResult AddSKK()
 {
     SKKViewModel model = new SKKViewModel();
     return View(model);
 }
예제 #3
0
 public ActionResult SKK()
 {
     SKKViewModel model = new SKKViewModel();
     model.GetList();
     return View(model);
 }
예제 #4
0
 public ActionResult SKKDetails(int id)
 {
     SKKViewModel model = new SKKViewModel();
     model.Get(id);
     return View(model);
 }
예제 #5
0
        public ActionResult EditSKK(int? id)
        {
            if (id == null)
                return RedirectToAction("SKK");

            SKKViewModel model = new SKKViewModel();

            if (!model.Get((int)id))
                return RedirectToAction("SKK");

            return View(model);
        }