We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eab885a commit 110d373Copy full SHA for 110d373
ADO.NET/02/03-PhoneBook/Presenters/ContactsPresenter.cs
@@ -13,7 +13,6 @@ namespace _03_PhoneBook.Presenters
13
public class ContactsPresenter
14
{
15
public List<Contact> Contacts { get; set; }
16
-
17
private string path = Environment.CurrentDirectory + "//contacts.json";
18
19
public ContactsPresenter()
@@ -27,10 +26,6 @@ public async void Save()
27
26
28
try
29
30
- //var json = JsonSerializer.Serialize(Contacts);
31
32
- //File.WriteAllText(path, json);
33
34
using (var fs = new FileStream(path, FileMode.Create))
35
36
await JsonSerializer.SerializeAsync(fs, Contacts);
JS.7z
22 MB
0 commit comments