Пример #1
0
 public ActionResult PositionProc(int id, string pname, int eid)
 {
     if (id == 0)
     {
         Position.AddInfo(new Position(pname, eid));
     }
     else
     {
         Position.UpdateInfo(new Position(id, pname, eid));
     }
     return(RedirectToAction("PositionManager"));
 }