public MarvelQuery(
            ICharacterRepository characterRepository,
            IComicRepository comicRepository,
            IEventRepository eventRepository,
            ISerieRepository serieRepository)
        {
            Field <CharacterType>(
                "character",
                arguments: new QueryArguments(new QueryArgument <IntGraphType> {
                Name = "marvelId"
            }),
                resolve: context => characterRepository.Get(context.GetArgument <int>("marvelId")));
            Field <CharacterType>(
                "characters",
                resolve: context => characterRepository.GetAll());

            Field <ListGraphType <ComicType> >(
                "comics",
                resolve: context => comicRepository.GetAll());

            Field <EventType>(
                "events",
                resolve: context => eventRepository.GetAll());

            Field <SerieType>(
                "series",
                resolve: context => serieRepository.GetAll());
        }
        public IActionResult GetAllComics()
        {
            var allComics = _comicRepository.GetAll().OrderBy(o => o.Num).ToList();

            var allComicsDto = allComics.Select(Mapper.Map <ComicDto>);

            return(Ok(allComicsDto));
        }
 public List <Comic> All()
 {
     return(_comicRepository.GetAll());
 }