Exemplo n.º 1
0
    public List<ModelsInfo> GetModelsInfo(string AuthenticationID, string CustomerID)
    {
        ModelBL objModelBL = new ModelBL();

        var obj = new List<ModelsInfo>();
        MobileBL objMobileBL = new MobileBL();
        if (CustomerID.Trim() != "")
        {
            DataSet dsSaveCustInfo = objMobileBL.SaveMobileCustomerInfo("GetModelsInfo", CustomerID,AuthenticationID,"AllModels");
        }
        if (AuthenticationID == ConfigurationManager.AppSettings["AppleID"].ToString())
        {
            obj = (List<ModelsInfo>)objModelBL.GetModels("0");

        }
        return obj;
    }
    private void GetModelsInfo(string MakeID, DropDownList DdlModel)
    {
        ModelBL objModelBL = new ModelBL();

        var obj = new List<ModelsInfo>();

        if (Session["Model"] == null)
        {
            obj = (List<ModelsInfo>)objModelBL.GetModels("0");
            Session["Model"] = obj;
        }
        else
        {
            obj = (List<ModelsInfo>)Session["Model"];
        }

        DdlModel.Items.Clear();

        DdlModel.Items.Insert(0, new ListItem("Select", "0"));

        DdlModel.DataSource = obj.FindAll(p => p.MakeID == Convert.ToInt32(MakeID)); ;

        DdlModel.DataTextField = "Model";
        DdlModel.DataValueField = "MakeModelID";
        DdlModel.DataBind();
    }
    public List<ModelsInfo> GetModelsInfo()
    {
        ModelBL objModelBL = new ModelBL();

        var obj = new List<ModelsInfo>();

        obj = (List<ModelsInfo>)objModelBL.GetModels("0");

        return obj;
    }
    private void FillModels()
    {
        ModelBL objModelBL = new ModelBL();

        var obj = new List<ModelsInfo>();

        if (Session["Model"] == null)
        {
            obj = (List<ModelsInfo>)objModelBL.GetModels("0");
            Session["Model"] = obj;
        }
        else
        {
            obj = (List<ModelsInfo>)Session["Model"];
        }
    }
Exemplo n.º 5
0
    public List<ModelsInfo> GetModelsInfo()
    {
        ModelBL objModelBL = new ModelBL();

        var obj = new List<ModelsInfo>();

        if (Session["Model"] == null)
        {
            obj = (List<ModelsInfo>)objModelBL.GetModels("0");
            Session["Model"] = obj;
        }
        else
        {
            obj = (List<ModelsInfo>)Session["Model"];
        }

        return obj;
    }