コード例 #1
0
 public ActionResult TreeListPartialDelete(int employeeID)
 {
     try {
         EmployeesDataProvider.DeleteEmployee(employeeID);
     }
     catch (Exception e) {
         ViewData["EditNodeError"] = e.Message;
     }
     return(PartialView("TreeListPartial", EmployeesDataProvider.GetData()));
 }
コード例 #2
0
 public ActionResult TreeListPartialUpdate(Employee employee)
 {
     if (ModelState.IsValid)
     {
         try {
             EmployeesDataProvider.UpdateEmployee(employee);
         }
         catch (Exception e) {
             ViewData["EditNodeError"] = e.Message;
         }
     }
     else
     {
         ViewData["EditNodeError"] = "Please, correct all errors.";
     }
     return(PartialView("TreeListPartial", EmployeesDataProvider.GetData()));
 }
コード例 #3
0
 public ActionResult Index()
 {
     return(View(EmployeesDataProvider.GetData()));
 }
コード例 #4
0
 public ActionResult TreeListPartialCore()
 {
     return(PartialView("TreeListPartial", EmployeesDataProvider.GetData()));
 }
コード例 #5
0
 public ActionResult TreeListPartialMove(int employeeID, int?supervisorID)
 {
     EmployeesDataProvider.MoveEmployee(employeeID, supervisorID);
     return(PartialView("TreeListPartial", EmployeesDataProvider.GetData()));
 }