public async Task <List <ShoppingDTO> > GetShopping() { try { return(await _shoppingRepository.GetShopping()); } catch (Exception ex) { File.WriteAllText("log.txt", ex.Message + " - " + ex.StackTrace); throw new Exception("Erro no banco de dados, contate o administrador"); } }