public string UpdateMobileCarStatusByCarID(string CarID, string UID, string AdstatusName, string AuthenticationID, string CustomerID, string SessionID) { string returnPostingID = "Failure"; MobileBL objMobileBL = new MobileBL(); if (CustomerID.Trim() != "") { DataSet dsSaveCustInfo = objMobileBL.SaveMobileCustomerInfo("UpdateMobileCarStatusByCarID", CustomerID, AuthenticationID, CarID); } bool bnew = objMobileBL.CheckMobileAuthorizeUSer(SessionID, Convert.ToInt32(UID)); if (bnew) { try { bool bnw = objMobileBL.UpdateMobileCarStatusByCarID(Convert.ToInt32(CarID), Convert.ToInt32(UID), AdstatusName); if (bnw) { returnPostingID = "Success"; } } catch (Exception ex) { } } else { returnPostingID = "Session timed out"; } return(returnPostingID); }
public List <CarsInfo.MobileUserRegData> GetUserRegistrationDetailsByID(string UID, string AuthenticationID, string CustomerID, string SessionID) { List <CarsInfo.MobileUserRegData> obj = new List <CarsInfo.MobileUserRegData>(); MobileBL objReg = new MobileBL(); try { if (CustomerID.Trim() != "") { DataSet dsSaveCustInfo = objReg.SaveMobileCustomerInfo("GetUserRegistrationDetailsByID", CustomerID, AuthenticationID, UID); } bool bnew = objReg.CheckMobileAuthorizeUSer(SessionID, Convert.ToInt32(UID)); if (bnew) { if (AuthenticationID == ConfigurationManager.AppSettings["AppleID"].ToString()) { obj = (List <CarsInfo.MobileUserRegData>)objReg.GetUSerDetailsByUserID(Convert.ToInt32(UID)); } } else { var obj1 = new CarsInfo.MobileUserRegData(); obj1.AASucess = "Session timed out"; obj.Add(obj1); } } catch (Exception ex) { } return(obj); }
public string UpdateCarDescriptionByCarID(string Description, string CarID, string UID, string AuthenticationID, string CustomerID, string SessionID) { string returnPostingID = "Failure"; MobileBL objMobileBL = new MobileBL(); if (CustomerID.Trim() != "") { DataSet dsSaveCustInfo = objMobileBL.SaveMobileCustomerInfo("UpdateCarDescriptionByCarID", CustomerID, AuthenticationID, CarID); } bool bnew = objMobileBL.CheckMobileAuthorizeUSer(SessionID, Convert.ToInt32(UID)); if (bnew) { try { if (AuthenticationID == ConfigurationManager.AppSettings["AppleID"].ToString()) { bool bnw = objMobileBL.UpdateMobileDescriptionByCarID(Convert.ToInt32(CarID), Description); if (bnw) { returnPostingID = "Success"; } } } catch (Exception ex) { } } else { returnPostingID = "Session timed out"; } return(returnPostingID); }
public List <CarsInfo.PackagesInfo> GetPackageDetailsByUID(string UID, string AuthenticationID, string CustomerID, string SessionID) { List <CarsInfo.PackagesInfo> objPackagesInfo = new List <CarsInfo.PackagesInfo>(); MobileBL objMobileBL = new MobileBL(); try { if (CustomerID.Trim() != "") { DataSet dsSaveCustInfo = objMobileBL.SaveMobileCustomerInfo("GetPackageDetailsByUID", CustomerID, AuthenticationID, UID); } bool bnew = objMobileBL.CheckMobileAuthorizeUSer(SessionID, Convert.ToInt32(UID)); if (bnew) { if (AuthenticationID == ConfigurationManager.AppSettings["AppleID"].ToString()) { objPackagesInfo = (List <CarsInfo.PackagesInfo>)objMobileBL.GetPackageDetailsBYUID(UID); } } else { PackagesInfo objPack = new PackagesInfo(); objPack.AASuccess = "Session timed out"; objPackagesInfo.Add(objPack); } } catch (Exception ex) { } return(objPackagesInfo); }
public string UpdateSellerInformation(string sellerID, string sellerName, string city, string state, string zip, string phone, string email, string carID, string UID, string AuthenticationID, string CustomerID, string SessionID) { string returnPostingID = "Failure"; MobileBL objMobileBL = new MobileBL(); if (CustomerID.Trim() != "") { DataSet dsSaveCustInfo = objMobileBL.SaveMobileCustomerInfo("UpdateSellerInformation", CustomerID, AuthenticationID, sellerID); } bool bnew = objMobileBL.CheckMobileAuthorizeUSer(SessionID, Convert.ToInt32(UID)); if (bnew) { try { if (AuthenticationID == ConfigurationManager.AppSettings["AppleID"].ToString()) { UsedCarsInfo objUsedCarsInfo = new UsedCarsInfo(); objUsedCarsInfo.SellerID = Convert.ToInt32(sellerID); objUsedCarsInfo.SellerName = sellerName; objUsedCarsInfo.City = city; objUsedCarsInfo.State = state; objUsedCarsInfo.Zip = zip; objUsedCarsInfo.Phone = phone; objUsedCarsInfo.Email = email; DataSet dsposting = new DataSet(); dsposting = objMobileBL.UpdateMobileSellerInfo(objUsedCarsInfo, Convert.ToInt32(carID), Convert.ToInt32(UID)); if (dsposting.Tables.Count > 0) { if (dsposting.Tables[0].Rows.Count > 0) { returnPostingID = "Success"; } } } } catch (Exception ex) { } } else { returnPostingID = "Session timed out"; } return(returnPostingID); }
public List <CarsInfo.MultisiteInfo> GetMultisiteListingsByCarID(string CarID, string AuthenticationID, string CustomerID, string SessionID, string UID) { List <CarsInfo.MultisiteInfo> obj = new List <CarsInfo.MultisiteInfo>(); MobileBL objMobileBL = new MobileBL(); MultisiteInfo objCarInfo = new MultisiteInfo(); if (CustomerID.Trim() != "") { DataSet dsSaveCustInfo = objMobileBL.SaveMobileCustomerInfo("GetMultisiteListingsByCarID", CustomerID, AuthenticationID, CarID); } try { bool bnew = objMobileBL.CheckMobileAuthorizeUSer(SessionID, Convert.ToInt32(UID)); if (bnew) { int carIDnew = CarID == "" ? 0 : Convert.ToInt32(CarID); obj = (List <CarsInfo.MultisiteInfo>)objMobileBL.GetMultiSitePostingsByCariD(carIDnew); if (obj.Count <= 0) { objCarInfo.AASuccess = "Failure"; obj.Add(objCarInfo); } } else { objCarInfo.AASuccess = "Session timed out"; obj.Add(objCarInfo); } } catch (Exception ex) { } return(obj); }
public List <UserRegistrationInfo> UpdateUserRegistration(string name, string address, string city, string stateID, string zip, string phone, string UID, string businessName, string altEmail, string altPhone, string AuthenticationID, string CustomerID, string SessionID) { MobileBL objUserRegBL = new MobileBL(); var obj = new List <UserRegistrationInfo>(); MobileBL objMobileBL = new MobileBL(); if (CustomerID.Trim() != "") { DataSet dsSaveCustInfo = objMobileBL.SaveMobileCustomerInfo("UpdateUserRegistration", CustomerID, AuthenticationID, UID); } bool bnew = objMobileBL.CheckMobileAuthorizeUSer(SessionID, Convert.ToInt32(UID)); if (bnew) { try { if (AuthenticationID == ConfigurationManager.AppSettings["AppleID"].ToString()) { UserRegistrationInfo objUserInfo = new UserRegistrationInfo(); objUserInfo.Name = GeneralFunc.ToProper(name).Trim(); objUserInfo.Address = GeneralFunc.ToProper(address).Trim(); objUserInfo.City = GeneralFunc.ToProper(city).Trim(); objUserInfo.StateID = Convert.ToInt32(stateID); if (zip.Length == 4) { objUserInfo.Zip = "0" + zip; } else { objUserInfo.Zip = zip; } objUserInfo.PhoneNumber = phone; objUserInfo.UId = Convert.ToInt32(UID); objUserInfo.BusinessName = businessName; objUserInfo.AltEmail = altEmail; objUserInfo.AltPhone = altPhone; DataSet dsCarDetailsInfo = new DataSet(); dsCarDetailsInfo = objUserRegBL.USP_UpdateRegUserDetails(objUserInfo); if (dsCarDetailsInfo.Tables.Count > 0) { if (dsCarDetailsInfo.Tables[0].Rows.Count > 0) { UserRegistrationInfo objInfo = new UserRegistrationInfo(); objInfo.AASuccess = "Success"; objInfo.Address = dsCarDetailsInfo.Tables[0].Rows[0]["Address"].ToString() == "" ? "Emp" : dsCarDetailsInfo.Tables[0].Rows[0]["Address"].ToString(); objInfo.AltEmail = dsCarDetailsInfo.Tables[0].Rows[0]["AltEmail"].ToString() == "" ? "Emp" : dsCarDetailsInfo.Tables[0].Rows[0]["AltEmail"].ToString(); objInfo.AltPhone = dsCarDetailsInfo.Tables[0].Rows[0]["AltPhone"].ToString() == "" ? "Emp" : dsCarDetailsInfo.Tables[0].Rows[0]["AltPhone"].ToString(); objInfo.BusinessName = dsCarDetailsInfo.Tables[0].Rows[0]["BusinessName"].ToString() == "" ? "Emp" : dsCarDetailsInfo.Tables[0].Rows[0]["BusinessName"].ToString(); objInfo.City = dsCarDetailsInfo.Tables[0].Rows[0]["City"].ToString() == "" ? "Emp" : dsCarDetailsInfo.Tables[0].Rows[0]["City"].ToString(); objInfo.CouponCode = dsCarDetailsInfo.Tables[0].Rows[0]["CouponCode"].ToString() == "" ? "Emp" : dsCarDetailsInfo.Tables[0].Rows[0]["CouponCode"].ToString(); objInfo.CreatedDate = dsCarDetailsInfo.Tables[0].Rows[0]["CreatedDate"].ToString() == "" ? Convert.ToDateTime("1/1/1990") : Convert.ToDateTime(dsCarDetailsInfo.Tables[0].Rows[0]["CreatedDate"].ToString()); objInfo.Name = dsCarDetailsInfo.Tables[0].Rows[0]["Name"].ToString() == "" ? "Emp" : dsCarDetailsInfo.Tables[0].Rows[0]["Name"].ToString(); objInfo.PhoneNumber = dsCarDetailsInfo.Tables[0].Rows[0]["PhoneNumber"].ToString() == "" ? "Emp" : dsCarDetailsInfo.Tables[0].Rows[0]["PhoneNumber"].ToString(); objInfo.SellerID = dsCarDetailsInfo.Tables[0].Rows[0]["sellerID"].ToString() == "" ? 0 : Convert.ToInt32(dsCarDetailsInfo.Tables[0].Rows[0]["sellerID"].ToString()); objInfo.StateID = dsCarDetailsInfo.Tables[0].Rows[0]["StateID"].ToString() == "" ? 0 : Convert.ToInt32(dsCarDetailsInfo.Tables[0].Rows[0]["StateID"].ToString()); objInfo.StateName = dsCarDetailsInfo.Tables[0].Rows[0]["State_Code"].ToString() == "" ? "Emp" : dsCarDetailsInfo.Tables[0].Rows[0]["State_Code"].ToString(); objInfo.UId = dsCarDetailsInfo.Tables[0].Rows[0]["UId"].ToString() == "" ? 0 : Convert.ToInt32(dsCarDetailsInfo.Tables[0].Rows[0]["UId"].ToString()); objInfo.UserName = dsCarDetailsInfo.Tables[0].Rows[0]["UserName"].ToString() == "" ? "Emp" : dsCarDetailsInfo.Tables[0].Rows[0]["UserName"].ToString(); objInfo.Zip = dsCarDetailsInfo.Tables[0].Rows[0]["Zip"].ToString() == "" ? "Emp" : dsCarDetailsInfo.Tables[0].Rows[0]["Zip"].ToString(); obj.Add(objInfo); } } } } catch (Exception ex) { } } else { UserRegistrationInfo objUserInfo = new UserRegistrationInfo(); objUserInfo.AASuccess = "Session timed out"; obj.Add(objUserInfo); } return(obj); }