Exemplo n.º 1
0
        public async Task <ResponseAutorGet> Get(int id)
        {
            ResponseAutorGet result = new ResponseAutorGet();

            var retorno = await AutorService.Obter(id);

            result.Autores.Add(retorno);

            return(result);
        }
Exemplo n.º 2
0
        public async Task <ResponseAutorGet> Get()
        {
            ResponseAutorGet result = new ResponseAutorGet();

            var retorno = await AutorService.Obter();

            result.Autores = retorno.ToList();

            return(result);
        }