示例#1
0
        public ActionResult GetCategoryById(string key, int id)
        {
            var obj = key != Keyapi ? new CategoryItem() : _da.GetCategoryById(id);

            return(Json(obj, JsonRequestBehavior.AllowGet));
        }
示例#2
0
        // bind data vào text box
        public ActionResult GetCategoryById(int cateId)
        {
            var lstCategory = _categoryDa.GetCategoryById(cateId);

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