Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/01/11 01:47:33 (14 years ago)
Author:
cfleisch
Message:

#1439 Example implementation of method GetFilters() in view Filter added

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/WebApplication/MVC2/HLWebOKBQueryPlugin/Models/QueryModel.cs

    r5910 r5919  
    66using System.Web.Security;
    77using HLWebOKBQueryPlugin.OKBQueryService;
     8using HLWebOKBQueryPlugin.Helpers;
    89
    910namespace HLWebPluginHost.Models {
     
    1213       public String SelectedSubMenu { get; set; }
    1314
     15       public IList<Filter> QueryFilterGetAll() {
     16           QueryServiceClient client = Query.GetClientFactory();
     17
     18           IList<Filter> filterList = new List<Filter>();
     19
     20           if (client != null) {
     21               Filter[] filters = client.GetFilters();
     22               foreach (Filter f in filters) {
     23                   filterList.Add(f);
     24
     25               }
     26           }
     27
     28           return filterList;
     29       }
     30
    1431    }
    1532}
Note: See TracChangeset for help on using the changeset viewer.