17 lines
451 B
C#
17 lines
451 B
C#
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();
|
|
}
|
|
}
|