コード例 #1
0
        public IHttpActionResult GetAllData()
        {
            //var user = User.Identity.GetUserId();

            var authors = recentPostService.GetAll();

            return(Ok(authors));
        }
コード例 #2
0
 public IHttpActionResult GetAllData()
 {
     try
     {
         var authors = recentPostService.GetAll();
         return(Ok(authors));
     }
     catch (Exception)
     {
         throw;
     }
 }