Создание Search-моделей и контрактов

This commit is contained in:
Мк Игорь 2023-04-01 21:58:37 +04:00
parent 28ff3d68d1
commit ab5606bf2f
18 changed files with 198 additions and 0 deletions

View File

@ -0,0 +1,15 @@
using CarServiceContracts.BindingModels;
using CarServiceContracts.SearchModels;
using CarServiceContracts.ViewModels;
namespace CarServiceContracts.BusinessLogicsContracts
{
public interface ICustomerLogic
{
List<CustomerViewModel>? ReadList(CustomerSearchModel? model);
CustomerViewModel? ReadElement(CustomerSearchModel model);
bool Create(CustomerBindingModel model);
bool Update(CustomerBindingModel model);
bool Delete(CustomerBindingModel model);
}
}

View File

@ -0,0 +1,15 @@
using CarServiceContracts.BindingModels;
using CarServiceContracts.SearchModels;
using CarServiceContracts.ViewModels;
namespace CarServiceContracts.BusinessLogicsContracts
{
public interface IItemForRepairLogic
{
List<ItemForRepairViewModel>? ReadList(ItemForRepairSearchModel? model);
CustomerViewModel? ReadElement(ItemForRepairSearchModel model);
bool Create(ItemForRepairBindingModel model);
bool Update(ItemForRepairBindingModel model);
bool Delete(ItemForRepairBindingModel model);
}
}

View File

@ -0,0 +1,15 @@
using CarServiceContracts.BindingModels;
using CarServiceContracts.SearchModels;
using CarServiceContracts.ViewModels;
namespace CarServiceContracts.BusinessLogicsContracts
{
public interface IItemLogic
{
List<ItemViewModel>? ReadList(ItemSearchModel? model);
ItemViewModel? ReadElement(ItemSearchModel model);
bool Create(CustomerBindingModel model);
bool Update(CustomerBindingModel model);
bool Delete(CustomerBindingModel model);
}
}

View File

@ -0,0 +1,15 @@
using CarServiceContracts.BindingModels;
using CarServiceContracts.SearchModels;
using CarServiceContracts.ViewModels;
namespace CarServiceContracts.BusinessLogicsContracts
{
public interface IRepairRequestLogic
{
List<RepairRequestViewModel>? ReadList(RepairRequestSearchModel? model);
RepairRequestViewModel? ReadElement(RepairRequestSearchModel model);
bool Create(RepairRequestBindingModel model);
bool Update(RepairRequestBindingModel model);
bool Delete(RepairRequestBindingModel model);
}
}

View File

@ -0,0 +1,15 @@
using CarServiceContracts.BindingModels;
using CarServiceContracts.SearchModels;
using CarServiceContracts.ViewModels;
namespace CarServiceContracts.BusinessLogicsContracts
{
public interface IVehicleLogic
{
List<VehicleViewModel>? ReadList(VehicleSearchModel? model);
VehicleViewModel? ReadElement(VehicleSearchModel model);
bool Create(VehicleBindingModel model);
bool Update(VehicleBindingModel model);
bool Delete(VehicleBindingModel model);
}
}

View File

@ -0,0 +1,15 @@
using CarServiceContracts.BindingModels;
using CarServiceContracts.SearchModels;
using CarServiceContracts.ViewModels;
namespace CarServiceContracts.BusinessLogicsContracts
{
public interface IWorkInRequestLogic
{
List<WorkInRequestViewModel>? ReadList(WorkInRequestSearchModel? model);
WorkInRequestViewModel? ReadElement(WorkInRequestSearchModel model);
bool Create(WorkInRequestBindingModel model);
bool Update(WorkInRequestBindingModel model);
bool Delete(WorkInRequestBindingModel model);
}
}

View File

@ -0,0 +1,15 @@
using CarServiceContracts.BindingModels;
using CarServiceContracts.SearchModels;
using CarServiceContracts.ViewModels;
namespace CarServiceContracts.BusinessLogicsContracts
{
public interface IWorkLogic
{
List<WorkViewModel>? ReadList(WorkSearchModel? model);
WorkViewModel? ReadElement(WorkSearchModel model);
bool Create(WorkBindingModel model);
bool Update(WorkBindingModel model);
bool Delete(WorkBindingModel model);
}
}

View File

@ -0,0 +1,15 @@
using CarServiceContracts.BindingModels;
using CarServiceContracts.SearchModels;
using CarServiceContracts.ViewModels;
namespace CarServiceContracts.BusinessLogicsContracts
{
public interface IWorkPaymentLogic
{
List<WorkPaymentViewModel>? ReadList(WorkPaymentSearchModel? model);
WorkPaymentViewModel? ReadElement(WorkPaymentSearchModel model);
bool Create(WorkPaymentBindingModel model);
bool Update(WorkPaymentBindingModel model);
bool Delete(WorkPaymentBindingModel model);
}
}

View File

@ -0,0 +1,15 @@
using CarServiceContracts.BindingModels;
using CarServiceContracts.SearchModels;
using CarServiceContracts.ViewModels;
namespace CarServiceContracts.BusinessLogicsContracts
{
public interface IWorkerLogic
{
List<WorkerViewModel>? ReadList(WorkerSearchModel? model);
WorkerViewModel? ReadElement(WorkerSearchModel model);
bool Create(WorkerBindingModel model);
bool Update(WorkerBindingModel model);
bool Delete(WorkerBindingModel model);
}
}

View File

@ -0,0 +1,7 @@
namespace CarServiceContracts.SearchModels
{
public class CustomerSearchModel
{
public int? Id { get; set; }
}
}

View File

@ -0,0 +1,7 @@
namespace CarServiceContracts.SearchModels
{
public class ItemForRepairSearchModel
{
public int? Id { get; set; }
}
}

View File

@ -0,0 +1,7 @@
namespace CarServiceContracts.SearchModels
{
public class ItemSearchModel
{
public int? Id { get; set; }
}
}

View File

@ -0,0 +1,7 @@
namespace CarServiceContracts.SearchModels
{
public class RepairRequestSearchModel
{
public int? Id { get; set; }
}
}

View File

@ -0,0 +1,7 @@
namespace CarServiceContracts.SearchModels
{
public class VehicleSearchModel
{
public int? Id { get; set; }
}
}

View File

@ -0,0 +1,7 @@
namespace CarServiceContracts.SearchModels
{
public class WorkInRequestSearchModel
{
public int? Id { get; set; }
}
}

View File

@ -0,0 +1,7 @@
namespace CarServiceContracts.SearchModels
{
public class WorkPaymentSearchModel
{
public int? Id { get; set; }
}
}

View File

@ -0,0 +1,7 @@
namespace CarServiceContracts.SearchModels
{
public class WorkSearchModel
{
public int? Id { get; set; }
}
}

View File

@ -0,0 +1,7 @@
namespace CarServiceContracts.SearchModels
{
public class WorkerSearchModel
{
public int? Id { get; set; }
}
}