コード例 #1
0
        public IEnumerable <MyModel> GetList(string query = "")
        {
            var ds = CustomerList.GenerateList();

            ds = String.IsNullOrEmpty(query) ? ds : ds.Where(p => p.FirstName.Contains(query)).ToList();
            return(ds);
        }