Пример #1
0
 public JsonResult GetAllByCategoryId(string category)
 {
     if (!string.IsNullOrEmpty(category))
     {
         return(Json(_service.GetAllSubCategoryByCategoryId(category), JsonRequestBehavior.AllowGet));
     }
     return(Json(_service.GetAllSubCategory(), JsonRequestBehavior.AllowGet));
 }