public ActionResult Edit(int id = 0) { var categorys = _categoryRepository.GetChildList(); var model = _projectRepository.GetModel(id); var extend = _extendRepository.GetList(); ViewBag.Project = model; ViewBag.Categorys = categorys; ViewBag.Extend = extend; return(View()); }
public ActionResult GetExtends(ExtendSearchDTO req) { int total = 0; var list = ExtendRepository.GetList(out total, req); return(Json(new { rows = list, total = total }, JsonRequestBehavior.AllowGet)); }
public ActionResult GetExtend() { Response res = new Response(); res.Data = _extendRepository.GetList(); return(Json(res, JsonRequestBehavior.AllowGet)); }