public ActionResult TreeListPartialDelete(int employeeID) { try { EmployeesDataProvider.DeleteEmployee(employeeID); } catch (Exception e) { ViewData["EditNodeError"] = e.Message; } return(PartialView("TreeListPartial", EmployeesDataProvider.GetData())); }
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())); }
public ActionResult Index() { return(View(EmployeesDataProvider.GetData())); }
public ActionResult TreeListPartialCore() { return(PartialView("TreeListPartial", EmployeesDataProvider.GetData())); }
public ActionResult TreeListPartialMove(int employeeID, int?supervisorID) { EmployeesDataProvider.MoveEmployee(employeeID, supervisorID); return(PartialView("TreeListPartial", EmployeesDataProvider.GetData())); }