Добавьте файлы проекта.

This commit is contained in:
zcher
2025-12-14 18:15:23 +03:00
parent 9d11002bed
commit 81524b0ffb
11 changed files with 290 additions and 0 deletions

16
IContactRepository.cs Normal file
View File

@@ -0,0 +1,16 @@
using System;
using System.Threading.Tasks;
namespace ContactsApp
{
public interface IContactRepository
{
public void AddContact(Contact contact);
public void UpdateContact(Guid id, Contact contact);
public void DeleteContact(Guid id);
public Contact GetContactById(Guid id);
public IEnumerable<Contact> GetAll();
public void LoadJSON(string file);
public string SaveJSON();
}
}