Example #1
0
 public IHttpActionResult EditNotice([FromBody] int userID, int noticeID, string text)
 {
     try
     {
         _noticeService.EditNotice(userID, noticeID, text);
         return(Ok());
     }
     catch (Exception ex)
     {
         var error = ex.Message + " " + ex.StackTrace.ToString();
         _logService.AddError(error, userID);
         return(InternalServerError());
     }
 }