예제 #1
0
 public IHttpActionResult GetNoticesByDate(int userID, DateTime date)
 {
     try
     {
         var list = _noticeService.GetAllNoticesByDate(userID, date);
         return(Ok(list));
     }
     catch (Exception ex)
     {
         var text = ex.Message + " " + ex.StackTrace.ToString();
         _logService.AddError(text, userID);
         return(InternalServerError());
     }
 }