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"); } }
public void Delete(int id) => _creatureRepository.Delete(id);