public ActionResult Add()
 {
     if (Request.Form != null && Request.Form.Count > 0)
         {
             resp = departmentService.AddDepartment(Request);
             return this.JudgeResult(resp, () => RedirectToAction("Details", new { msg = string.Format("添加了'{0}'部门", Request.Form["name"].ToString()) }));
         }
         conta_Department = new Container_Department();
         return View(conta_Department);
 }
 public ActionResult Update(int id, string message)
 {
     if (Request.Form != null && Request.Form.Count > 0)
         {
             resp = departmentService.UpdateDepartment(Request);
             return this.JudgeResult(resp, () => RedirectToAction("Details", new { msg = string.Format("'{0}'部门已经更新", message) }));
         }
         else
         {
             conta_Department = new Container_Department();
             conta_Department.dep = new Department();
             resp = departmentService.GetDepartment(id, conta_Department.dep);
             return this.JudgeResult(resp, () => View(conta_Department));
         }
 }