RepositoryModel implemented
This commit is contained in:
19
H_PLUS_Sports/Contracts/ICustomerRepository.cs
Normal file
19
H_PLUS_Sports/Contracts/ICustomerRepository.cs
Normal file
@ -0,0 +1,19 @@
|
||||
using H_Plus_Sports.Models;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace H_Plus_Sports.Contracts
|
||||
{
|
||||
public interface ICustomerRepository
|
||||
{
|
||||
Task<Customer> Add(Customer customer);
|
||||
IEnumerable<Customer> GetAll();
|
||||
Task<Customer> Find(int id);
|
||||
Task<Customer> Update(Customer customer);
|
||||
Task<Customer> Remove(int id);
|
||||
Task<bool> Exist(int id);
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user