public IEnumerable<Entity.Model.Asset> GetList(bool Enabled) { IAssetComponent component = new AssetComponent(); IEnumerable<Asset> result = null; if (Enabled) { result = component.GetEnabledList(); } else { result = component.GetList(); } return result; // throw new NotImplementedException(); }
protected void Page_Load(object sender, EventArgs e) { IAssetComponent assetservice = new AssetComponent(); GridView1.DataSource = assetservice.GetList(); GridView1.DataBind(); }