Exemplo n.º 1
0
        public IEnumerable <int> GetIds()
        {
            var versions = queries
                           .HandleQuery(ctx => ctx.Query()
                                        .Where(a => !a.Deleted)
                                        .Select(v => v.Id)
                                        .ToArray());

            return(versions);
        }
Exemplo n.º 2
0
        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));
        }