コード例 #1
0
 //
 // GET: /OrgChart/Create
 public ActionResult Create()
 {
     OrgChart model =new OrgChart();
     model.ActionOperationType = EActionOperationType.Create;
     this.LoadCreateViewBag();
     return View("Create",model);
 }
コード例 #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);
 }
コード例 #3
0
 private void LoadEditViewBag(OrgChart model)
 {
 }