Beispiel #1
0
    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);
    }