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