Exemplo n.º 1
0
 //
 // GET: /OrgChart/Create
 public ActionResult Create()
 {
     OrgChart model =new OrgChart();
     model.ActionOperationType = EActionOperationType.Create;
     this.LoadCreateViewBag();
     return View("Create",model);
 }
Exemplo n.º 2
0
 public ActionResult Edit(OrgChart model)
 {
     model.ActionOperationType = EActionOperationType.Edit;
     if (ModelState.IsValid)
     {
         OrgChartService service = new OrgChartService();
         service.Update(model);
         return RedirectToAction("Index");
     }
     this.LoadEditViewBag(model);
     return View("Create",model);
 }
Exemplo n.º 3
0
 private void LoadEditViewBag(OrgChart model)
 {
 }