Добавить sada
This commit is contained in:
16
Interfaces/IContactRepository.cs
Normal file
16
Interfaces/IContactRepository.cs
Normal 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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user