Пример #1
0
 public async Task <IActionResult> DeleteTalk(long talkID)
 {
     try
     {
         if (talkID > 0)
         {
             await _talkService.DeleteTalkAsync(talkID);
         }
     }
     catch (Exception ex)
     {
         _logger.LogError(ex.Message, $"Failed to delete talkID ==> {talkID}: {DateTime.UtcNow.ToString("yyyy-MM-dd HH:mm:ss.fff")}");
     }
     _logger.LogInformation("Talk was successfully deleted");
     return(NoContent());
 }