예제 #1
0
        public async Task <ResponseEditoraGet> Get(int id)
        {
            ResponseEditoraGet result = new ResponseEditoraGet();

            var retorno = await EditoraService.Obter(id);

            result.Editoras.Add(retorno);

            return(result);
        }
예제 #2
0
        public async Task <ResponseEditoraGet> Get()
        {
            ResponseEditoraGet result = new ResponseEditoraGet();

            var retorno = await EditoraService.Obter();

            result.Editoras = retorno.ToList();

            return(result);
        }