public List <Example> GetListExampleByFilter(ExampleFilter exampleFilter) { if (!string.IsNullOrEmpty(exampleFilter.value)) { return(this.lstExample.FindAll(p => p.value.Contains(exampleFilter.value)).OrderBy(p => p.id).ToList()); } else { return(this.lstExample.OrderBy(p => p.id).ToList()); } }
public ExampleResult GetExampleByFilter(ExampleFilter filter) { throw new NotImplementedException(); }