public string CheckExistingBidDates(eCheckExistingBidDates eCheckExistingBidDates) { object result = null; string strReturn = string.Empty; try { strReturn = BL_BulkBid.CheckExistingBidDates(Convert.ToInt32(Session["PropId"]), eCheckExistingBidDates.dates); if (strReturn != "a") { result = new { st = 1, msg = strReturn } } ; else { result = new { st = 2, msg = strReturn } }; } catch (Exception ex) { result = new { st = 0, msg = "Kindly try after some time." }; } strReturn = OneFineRateAppUtil.clsUtils.ConvertToJson(result); return(strReturn); }
public string SaveLead(eSaveLead eSaveLead) { object result = null; string strReturn = string.Empty; try { strReturn = BL_BulkBid.SaveLead(((OneFineRateBLL.BL_Login.UserDetails)Session["UserDetails"]).iUserId, Convert.ToInt32(Session["PropId"]), string.IsNullOrEmpty(eSaveLead.dates) ? "" : eSaveLead.dates, string.IsNullOrEmpty(eSaveLead.CloseOut) ? "" : eSaveLead.CloseOut, string.IsNullOrEmpty(eSaveLead.CTA) ? "" : eSaveLead.CTA, string.IsNullOrEmpty(eSaveLead.CTD) ? "" : eSaveLead.CTD, string.IsNullOrEmpty(eSaveLead.Lead) ? "" : eSaveLead.Lead, eSaveLead.typ); result = new { st = 1, msg = strReturn }; } catch (Exception ex) { result = new { st = 0, msg = "Kindly try after some time." }; } strReturn = OneFineRateAppUtil.clsUtils.ConvertToJson(result); return(strReturn); }