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