Ejemplo n.º 1
0
    private void GetVehicleServices(int vehicleID)
    {
        //variable to store the vehicleserviceID
        int ID = 0;
        //call the stored proc
        var serv = autoEntities.usp_Services(vehicleID);

        //bind it to the datalist control
        DataList2.DataSource = serv.ToList();
        DataList2.DataBind();

        //call it again to iterate through and get
        //the vehicleServiceID
        var servID = autoEntities.usp_Services(vehicleID);

        foreach (var s in servID)
        {
            ID = s.VehicleServiceID;
        }

        //call the next method
        GetVehicleServicesDetail(ID);
    }