示例#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());
     }
 }
示例#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());
     }
 }
示例#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()));
     }
 }