// GET: GetAllProductsInCategory. /// <summary> /// Returns all products in the given category, ordered by precedence. /// </summary> /// <returns></returns> public JsonResult GetAllProductsInCategory(int categoryId) { var allProducts = ProductsBL.GetAllProductsInCategory(categoryId); return(Json(allProducts, JsonRequestBehavior.AllowGet)); }