public JsonResult Select_SaleQuotModal()
        {
            string data;
            bool   result = false;

            data = SaleQuotMethods.GetSaleQuotModal(Session["DealerCode"].ToString());

            if (!string.IsNullOrEmpty(data))
            {
                result = true;
            }

            return(Json(new { Success = result, Response = data }, JsonRequestBehavior.AllowGet));
        }
        public JsonResult Select_SaleQuotDetail(string EnquiryId, string Code)
        {
            string data   = "";
            bool   result = false;

            data = SaleQuotMethods.Get_SaleQuotDetailData(EnquiryId, Session["DealerCode"].ToString());

            if (!string.IsNullOrEmpty(data))
            {
                result = true;
            }

            return(Json(new { Success = result, Response = data }, JsonRequestBehavior.AllowGet));
        }
        public JsonResult Get_ChassisDetail(string ChassisNo, string Brand, string Product, string Version, string DealerCode)
        {
            String data;
            bool   result = false;

            data = SaleQuotMethods.Get_ChassisDetail(ChassisNo, Brand, Product, Version, DealerCode);

            if (!string.IsNullOrEmpty(data))
            {
                result = true;
            }

            return(Json(new { Success = result, Response = data }, JsonRequestBehavior.AllowGet));
        }
        public JsonResult Insert_SQDetail(List <SaleQuotDetailVM> objects)
        {
            bool   result = false;
            string msg    = "Failed to save record..";

            result = SaleQuotMethods.Insert_SQDetail(objects, Session["DealerCode"].ToString(), ref msg);


            if (result)
            {
                msg = "Successfully Added";
            }

            return(Json(new { Success = result, Message = msg }, JsonRequestBehavior.AllowGet));
        }
        public JsonResult Insert_SQMaster(SaleQuotMasterVM SQMasterVM)
        {
            bool result = false;

            string msg = "Failed to save record..";

            result = SaleQuotMethods.Insert_SQMaster(SQMasterVM);

            if (result)
            {
                msg = "Successfully Added";
            }

            return(Json(new { Success = result, Message = msg }, JsonRequestBehavior.AllowGet));
        }