Пример #1
0
        public ActionResult EditPosition(PositionViewModel model)
        {
            if (!ModelState.IsValid)
                return View(model);

            model.EditPosition();
            return RedirectToAction("Position");
        }
Пример #2
0
 public ActionResult EditPosition(int id)
 {
     PositionViewModel model = new PositionViewModel();
     model.Get(id);
     return View(model);
 }
Пример #3
0
 public ActionResult Position()
 {
     PositionViewModel model = new PositionViewModel();
     model.GetList();
     return View(model);
 }