Добавлены интерфейсы
This commit is contained in:
parent
13bcafdf4e
commit
b130453828
@ -8,4 +8,8 @@
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="Implementations\" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
20
project/ProjectTourAgency/Repositories/IClientRepository.cs
Normal file
20
project/ProjectTourAgency/Repositories/IClientRepository.cs
Normal file
@ -0,0 +1,20 @@
|
||||
using ProjectTourAgency.Enities;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ProjectTourAgency.Repositories;
|
||||
|
||||
public interface IClientRepository
|
||||
{
|
||||
IEnumerable<Client> ReadClients();
|
||||
|
||||
Client ReadClientById(int id);
|
||||
|
||||
void CreateClient(Client client);
|
||||
void UpdateClient(Client client);
|
||||
|
||||
void DeleteClient(int id);
|
||||
}
|
@ -0,0 +1,20 @@
|
||||
using ProjectTourAgency.Enities;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ProjectTourAgency.Repositories;
|
||||
|
||||
public interface IDiscountRepository
|
||||
{
|
||||
IEnumerable<Discount> ReadDiscounts();
|
||||
|
||||
Client ReadDiscountById(int id);
|
||||
|
||||
void CreateDiscount(Discount discount);
|
||||
void UpdateDiscount(Discount discount);
|
||||
|
||||
void DeleteDiscount(int id);
|
||||
}
|
18
project/ProjectTourAgency/Repositories/IReceiptRepository.cs
Normal file
18
project/ProjectTourAgency/Repositories/IReceiptRepository.cs
Normal file
@ -0,0 +1,18 @@
|
||||
using ProjectTourAgency.Enities;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ProjectTourAgency.Repositories;
|
||||
|
||||
public interface IReceiptRepository
|
||||
{
|
||||
IEnumerable<Receipt> ReadReceipts(DateTime? dateFrom = null,
|
||||
DateTime? dateTo = null, int? clientId = null,int? tourId = null);
|
||||
|
||||
|
||||
void CreateReceipt(Receipt receipt);
|
||||
|
||||
}
|
20
project/ProjectTourAgency/Repositories/ITourRepositiry.cs
Normal file
20
project/ProjectTourAgency/Repositories/ITourRepositiry.cs
Normal file
@ -0,0 +1,20 @@
|
||||
using ProjectTourAgency.Enities;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ProjectTourAgency.Repositories;
|
||||
|
||||
public interface ITourRepositiry
|
||||
{
|
||||
IEnumerable<Tour> ReadTours();
|
||||
|
||||
Client ReadTourById(int id);
|
||||
|
||||
void CreateTourt(Tour tour);
|
||||
void UpdateTour(Tour tour);
|
||||
|
||||
void DeleteTour(int id);
|
||||
}
|
Loading…
Reference in New Issue
Block a user