Esempio n. 1
0
    public List <UsedCarsInfo> GetRecentCarsMobile(string sCurrentPage, string PageSize,
                                                   string Orderby, string Sort, string sPin, string AuthenticationID, string CustomerID)
    {
        CarsBL.Transactions.MobileData objCarsearch = new CarsBL.Transactions.MobileData();
        MobileBL objMobileBL = new MobileBL();
        var      obj         = new List <CarsInfo.UsedCarsInfo>();

        try
        {
            if (CustomerID.Trim() != "")
            {
                string  parameters     = Orderby + "," + Sort + "," + sPin;
                DataSet dsSaveCustInfo = objMobileBL.SaveMobileCustomerInfo("GetRecentCarsMobile", CustomerID, AuthenticationID, parameters);
            }

            if (AuthenticationID == ConfigurationManager.AppSettings["AppleID"].ToString())
            {
                obj = (List <CarsInfo.UsedCarsInfo>)objCarsearch.GetRecentCarsMobile(sCurrentPage, PageSize, Orderby, Sort, sPin);
            }
        }
        catch (Exception ex)
        {
        }
        return(obj);
    }
Esempio n. 2
0
    public List<UsedCarsInfo> GetRecentCarsMobile(string sCurrentPage, string PageSize,
           string Orderby, string Sort, string sPin, string AuthenticationID, string CustomerID)
    {
        CarsBL.Transactions.MobileData objCarsearch = new CarsBL.Transactions.MobileData();
        MobileBL objMobileBL = new MobileBL();
        var obj = new List<CarsInfo.UsedCarsInfo>();

        try
        {
            if (CustomerID.Trim() != "")
            {
             string parameters=Orderby+","+Sort+","+sPin;
                DataSet dsSaveCustInfo = objMobileBL.SaveMobileCustomerInfo("GetRecentCarsMobile", CustomerID,AuthenticationID,parameters);
            }

            if (AuthenticationID == ConfigurationManager.AppSettings["AppleID"].ToString())
            {
                obj = (List<CarsInfo.UsedCarsInfo>)objCarsearch.GetRecentCarsMobile(sCurrentPage, PageSize, Orderby, Sort, sPin);

            }

        }
        catch (Exception ex)
        {
        }
        return obj;
    }
    public List<UsedCarsInfo> GetRecentCarsMobile(string sCurrentPage, string PageSize,
          string Orderby, string Sort, string sPin)
    {
        CarsBL.Transactions.MobileData objCarsearch = new CarsBL.Transactions.MobileData();

        var obj = new List<CarsInfo.UsedCarsInfo>();

        try
        {
            obj = (List<CarsInfo.UsedCarsInfo>)objCarsearch.GetRecentCarsMobile(sCurrentPage, PageSize, Orderby, Sort, sPin);

        }
        catch (Exception ex)
        {
        }
        return obj;
    }