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