public ActionResult <Collection <Word> > Get([FromQuery] string filter = null) { IOrderedQueryable <Word> query; if (filter == null) { query = this._context.Words.OrderBy(w => w.String); } else { query = this._context.Words.Where(w => DataDbContext.RemoveDiacritics(w.String).Contains(DataDbContext.RemoveDiacritics(filter))).OrderBy(w => w.String); } return(new Collection <Word>(query.ToArray())); }