Добавлены интерфейсы

This commit is contained in:
Tonb73 2024-11-08 20:53:44 +04:00
parent 13bcafdf4e
commit b130453828
5 changed files with 82 additions and 0 deletions

View File

@ -8,4 +8,8 @@
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>
<ItemGroup>
<Folder Include="Implementations\" />
</ItemGroup>
</Project>

View 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);
}

View 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 IDiscountRepository
{
IEnumerable<Discount> ReadDiscounts();
Client ReadDiscountById(int id);
void CreateDiscount(Discount discount);
void UpdateDiscount(Discount discount);
void DeleteDiscount(int id);
}

View 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);
}

View 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);
}