예제 #1
0
 //
 // 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);
 }
예제 #2
0
 public ActionResult DeleteConfirmed(int id)
 {
     OrgChartService service = new OrgChartService();
     OrgChart model = service.GetOrgChartByID(new OrgChart() { Id = id });
     service.Remove(model);
     return RedirectToAction("Index");
 }
예제 #3
0
 //
 // 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);
 }