public IEnumerable <int> GetIds() { var versions = queries .HandleQuery(ctx => ctx.Query() .Where(a => !a.Deleted) .Select(v => v.Id) .ToArray()); return(versions); }
public ActionResult Versions(DataFormat format = DataFormat.Auto) { var versions = queries .HandleQuery(ctx => ctx.Query() .Where(a => !a.Deleted) .Select(a => new { a.Id, a.Version }) .ToArray() .Select(v => new EntryIdAndVersionContract(v.Id, v.Version)) .ToArray()); return(ObjectLowercase(versions, format)); }