public JsonResult GetAllCategories() { ProductCategoryApi categoryApi = new ProductCategoryApi(); List <ProductCategoryViewModel> result = categoryApi.GetActive(); return(Json(result, JsonRequestBehavior.AllowGet)); }