Esempio n. 1
0
 public IHttpActionResult GetAllNotices(int userID)
 {
     try
     {
         var list = _noticeService.GetAllNotices(userID);
         return(Ok(list));
     }
     catch (Exception ex)
     {
         var text = ex.Message + " " + ex.StackTrace.ToString();
         _logService.AddError(text, userID);
         return(InternalServerError());
     }
 }