Exemple #1
0
 public async Task <IEnumerable <AutorEntity> > GetAllAsync(string search)
 {
     return(await _autorRepository.GetAllAsync(search));
 }
Exemple #2
0
        public async Task <ActionResult <IEnumerable <Autor> > > GetAutores()
        {
            var result = await _repository.GetAllAsync();

            return(result.ToList());
        }
        public async Task <ActionResult <List <AutorDTO> > > GetAuthors()
        {
            var autors = await autorRepository.GetAllAsync();

            return(Ok(mapper.Map <List <AutorDTO> >(autors)));
        }
Exemple #4
0
 public async Task <IActionResult> Index()
 {
     return(View(await autorRepository.GetAllAsync(configuration["APIAuthor:BaseUrl"])));
 }