Beispiel #1
0
        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());
        }
Beispiel #2
0
        public ActionResult GetExtends(ExtendSearchDTO req)
        {
            int total = 0;
            var list  = ExtendRepository.GetList(out total, req);

            return(Json(new { rows = list, total = total }, JsonRequestBehavior.AllowGet));
        }
Beispiel #3
0
        public ActionResult GetExtend()
        {
            Response res = new Response();

            res.Data = _extendRepository.GetList();
            return(Json(res, JsonRequestBehavior.AllowGet));
        }