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