public ActionResult AddSKK(SKKViewModel model) { if (!ModelState.IsValid) return View(model); model.AddSKK(); return RedirectToAction("SKK"); }
public ActionResult AddSKK() { SKKViewModel model = new SKKViewModel(); return View(model); }
public ActionResult SKK() { SKKViewModel model = new SKKViewModel(); model.GetList(); return View(model); }
public ActionResult SKKDetails(int id) { SKKViewModel model = new SKKViewModel(); model.Get(id); return View(model); }
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); }