Ejemplo n.º 1
0
    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);
    }