public JsonResult Select_ProRecDetail(string EnquiryId) { string data; bool result = false; data = DeliveryOrderMethods.GetProRecDetail(EnquiryId, Session["DealerCode"].ToString()); if (!string.IsNullOrEmpty(data)) { result = true; } return(Json(new { Success = result, Response = data }, JsonRequestBehavior.AllowGet)); }
public JsonResult Select_ProRecDetail(string EnquiryId) { List <RequestVehicleReceiptVM> data; bool result = false; data = DeliveryOrderMethods.GetProRecDetail(EnquiryId, Session["DealerCode"].ToString()); if (data.Count > 0) { result = true; } return(Json(new { Success = result, Response = data }, JsonRequestBehavior.AllowGet)); }