This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (ns loja.nuzitcho) | |
| (def purchases [{:date "2020-12-01" :value 10.7 :place "lojaumDoJaum" :category "bugigangas"} | |
| {:date "2021-01-05" :value 101.7 :place "RestorantDoJaquin" :category "Tomperro"} | |
| {:date "2021-01-05" :value 100.7 :place "RestorantDoJaquin" :category "Tomperro"} | |
| {:date "2021-03-15" :value 81.2 :place "SupermarketDoJézaum" :category "Comida"} | |
| {:date "2021-03-16" :value 21 :place "LoRistorant" :category "Comida"} | |
| {:date "2021-03-16" :value 11.7 :place "Marmitex" :category "Comida"} | |
| {:date "2021-03-17" :value 11.6 :place "Supermarket" :category "Comida"}]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public async System.Threading.Tasks.Task addCalendarioAsync() | |
| { | |
| var context = new ManagementContext(); | |
| for (int i = 2020; i < 2027; i++) | |
| { | |
| var feriado = await getFeriadoAsync(i); | |
| feriado.ForEach(f => | |
| { | |
| context.Feriados.Add(f); |