/* * */ public static IEnumerable <Comic> GetSeries(BCRUser user, Guid id, NancyContext context) { var books = ComicRackAPIServer.Plugin.Application.GetLibraryBooks(); var book = books.Where(x => x.Id == id).First(); var series = books.Where(x => x.ShadowSeries == book.ShadowSeries) .Where(x => x.ShadowVolume == book.ShadowVolume) .Select(x => x.ToComic(user)) .OrderBy(x => x.ShadowNumber).ToList(); int totalCount = 0; return(context.ApplyODataUriFilter(series, ref totalCount).Cast <Comic>()); }