public static string UpdateStatus(string leadid, string status, string id)
        {
            string           dropid           = "";
            DailyLeadsHelper statisLeadHelper = new DailyLeadsHelper();
            bool             isUpdated        = statisLeadHelper.UpdateLeadStatus(Convert.ToInt32(leadid), status);

            if (isUpdated)
            {
                dropid = id;
            }
            return(dropid);
        }
Example #2
0
        public static string GetUSDOTDetails(string usdotno)
        {
            MCSaleHelper mcSaleHelper = new MCSaleHelper();
            MCSaleEntity mcSale       = mcSaleHelper.GetMCSaleUSDotNo(usdotno);

            if (mcSale == null)
            {
                DailyLeadsHelper leadHelper = new DailyLeadsHelper();
                DailyLeadEntity  LeadsData  = leadHelper.GetLeadRecordsByDOTNo(usdotno);
                var json = new JavaScriptSerializer().Serialize(LeadsData);
                return(json);
            }
            var jsonSale = new JavaScriptSerializer().Serialize(mcSale);

            return(jsonSale);
        }