예제 #1
0
 public async Task <ActionResult <int> > Delete(int?SourceId)
 {
     try
     {
         return(await _dataAccessProvider.DeleteSourceRecordAsync(SourceId));
     }
     catch (Exception ex)
     {
         _logger.LogError($"Something went wrong: {ex}");
         return(CreatedAtAction(nameof(Delete), ex));
     }
 }