// // GET: /OrgChart/Details/5 public ViewResult Details(int id) { OrgChartService service = new OrgChartService(); OrgChart model = service.GetOrgChartByID(new OrgChart() { Id = id }); model.ActionOperationType = EActionOperationType.Details; return View("Create",model); }
public ActionResult DeleteConfirmed(int id) { OrgChartService service = new OrgChartService(); OrgChart model = service.GetOrgChartByID(new OrgChart() { Id = id }); service.Remove(model); return RedirectToAction("Index"); }
// // GET: /OrgChart/Edit/5 public ActionResult Edit(int id) { OrgChartService service = new OrgChartService(); OrgChart model = service.GetOrgChartByID(new OrgChart() { Id = id }); model.ActionOperationType = EActionOperationType.Edit; this.LoadEditViewBag(model); return View("Create",model); }