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