コード例 #1
0
 public async Task Delete(int id)
 {
     try
     {
         await _CreatureRepository.Delete(id);
     }
     catch (Exception ex)
     {
         File.WriteAllText("log.txt", ex.Message + " - " + ex.StackTrace);
         throw new Exception("Erro no banco de dados, contate o administrador");
     }
 }
コード例 #2
0
 public void Delete(int id) => _creatureRepository.Delete(id);