public IHttpActionResult GetAllData()
        {
            //var user = User.Identity.GetUserId();

            var authors = recentPostService.GetAll();

            return(Ok(authors));
        }
 public IHttpActionResult GetAllData()
 {
     try
     {
         var authors = recentPostService.GetAll();
         return(Ok(authors));
     }
     catch (Exception)
     {
         throw;
     }
 }