public IEnumerable <FileHeader> Header(string contentType, int skip = 0, int take = 20) { //TODO: Paging and other neat stuff... return(area .Get(contentType) .Skip(skip) .Take(take) .Select(json => new FileHeader(json))); }
public JObject Get(Guid id, string contentType) { JObject entity = performance.TrackFunction(() => area.Get(id), TRACK_TYPE, new { fn = $"ContentService.Get({id}, {contentType})" }); using (PipelineContext context = pipeline.CreateContext(contentType, entity)) { //TODO: Throw exception if not found? return(pipeline.ExecuteAfterGet(entity, contentType, context)); } }