Add contact controller
This commit is contained in:
20
Repositories/IContactRepository.cs
Normal file
20
Repositories/IContactRepository.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using weddingapi.Models;
|
||||
|
||||
namespace weddingapi.Repositories
|
||||
{
|
||||
public interface IContactRepository
|
||||
{
|
||||
Task<Contact> GetContactAsync(Guid id);
|
||||
|
||||
Task<IEnumerable<Contact>> GetContactsAsync();
|
||||
|
||||
Task CreateContactAsync(Contact family);
|
||||
|
||||
Task UpdateContactAsync(Contact family);
|
||||
|
||||
Task DeleteContactAsync(Guid id);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user