示例#1
0
        public ActionResult <IEnumerable <Autor> > Get()
        {
            var lista = new AutorBLL().GetAutor();

            if (lista.Count() > 0)
            {
                return(Ok(lista));
            }

            return(BadRequest("A pesquisa não retornou resultado"));
        }