Esempio n. 1
0
 public async Task <IEnumerable <AutorEntity> > GetAllAsync(string search)
 {
     return(await _autorRepository.GetAllAsync(search));
 }
Esempio n. 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)));
        }
Esempio n. 4
0
 public async Task <IActionResult> Index()
 {
     return(View(await autorRepository.GetAllAsync(configuration["APIAuthor:BaseUrl"])));
 }