예제 #1
0
 public ActionResult AddUser(int id, Position model)
 {
     if (ModelState.IsValid)
     {
         DepartmentManager.AddUser(id, model.Username, model.Title, model.IsInCharge);
         return(RedirectToAction("Page", new { id }));
     }
     return(View(model));
 }