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