예제 #1
0
 public async Task <Time> GetByCasa(Casa casa)
 {
     try
     {
         return(await _timeRepository.GetByCasa(casa));
     }
     catch (Exception ex)
     {
         File.WriteAllText("log.txt", ex.Message + " - " + ex.StackTrace);
         throw new Exception("Erro no banco de dados, contate o administrador");
     }
 }