예제 #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());
        }
예제 #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));
        }
예제 #3
0
        public ActionResult GetExtend()
        {
            Response res = new Response();

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