コード例 #1
0
ファイル: AuthorController.cs プロジェクト: ragib007/blogAPI
 public IEnumerable <Author> Get()
 {
     return(_authorManager.GetAllAuthors());
 }
コード例 #2
0
 public void OnGet()
 {
     Authors   = manager.GetAllAuthors();
     PageTitle = "List of Authors";
 }
コード例 #3
0
        public IActionResult ApiList()
        {
            var authors = authorManager.GetAllAuthors();

            return(Ok(authors)); //return a simple api result (json/xml) back to user with status 200
        }
コード例 #4
0
 public IActionResult GetAllAuthors()
 {
     return(Ok(authorManager.GetAllAuthors()));
 }