Exemplo n.º 1
0
 public IList <Leaf> GetLeafes(int parentId, bool showDeleted = false)
 {
     using (var context = new ApiDocDbDataContext())
     {
         return(context.Leafes_GetAll(parentId, showDeleted)
                .Select(x => DbTypeConverter.MapLeaf(x, GetHttpVerbs())).ToList());
     }
 }
Exemplo n.º 2
0
 public IList <Leaf> GetLeafRevisions(int parentId, string name, int?httpVerb)
 {
     using (var context = new ApiDocDbDataContext())
     {
         return(context.Leafes_GetRevisions(parentId, name, httpVerb)
                .Select(x => DbTypeConverter.MapLeaf(x, GetHttpVerbs())).ToList());
     }
 }
Exemplo n.º 3
0
 public Leaf GetLeafByName(int parentId, string name, int?httpVerb, int?revision = null)
 {
     using (var context = new ApiDocDbDataContext())
     {
         return(DbTypeConverter.MapLeaf(
                    context.Leafes_GetByName(parentId, name, httpVerb, revision).First(),
                    GetHttpVerbs()));
     }
 }