Ejemplo n.º 1
0
 public IEnumerable <Author> Get()
 {
     return(_authorManager.GetAllAuthors());
 }
 public void OnGet()
 {
     Authors   = manager.GetAllAuthors();
     PageTitle = "List of Authors";
 }
        public IActionResult ApiList()
        {
            var authors = authorManager.GetAllAuthors();

            return(Ok(authors)); //return a simple api result (json/xml) back to user with status 200
        }
Ejemplo n.º 4
0
 public IActionResult GetAllAuthors()
 {
     return(Ok(authorManager.GetAllAuthors()));
 }