public JsonResult GetBrands(int shopId = 1) { try { if (shopId > 0) { return(Json(GlobalMethod.GetBrands())); } else { return(Json("Invalid Parameter")); } } catch (Exception) { return(Json("Invalid Error")); } }