Example #1
0
        public ActionResult AjaxSort()
        {
            var listCategory = _categoryDa.GetAllListSimpleByParentId(ArrId.FirstOrDefault(), Utility.AgencyId);

            ViewData.Model = listCategory;
            return(View());
        }
        public ActionResult GetAllListSimpleByParentId(string key, int id, int agencyId)
        {
            var obj = key != Keyapi ? new List <CategoryItem>() : _da.GetAllListSimpleByParentId(id, agencyId);

            return(Json(obj, JsonRequestBehavior.AllowGet));
        }