public JsonResult Get_FreightCharges(string Loc, string Product, string DealerCode) { String data; bool result = false; data = BookingOrderMethods.Get_FreightCharges(Loc, Product, DealerCode); if (!string.IsNullOrEmpty(data)) { result = true; } return(Json(new { Success = result, Response = data }, JsonRequestBehavior.AllowGet)); }