Создание Search-моделей и контрактов
This commit is contained in:
parent
28ff3d68d1
commit
ab5606bf2f
@ -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);
|
||||
}
|
||||
}
|
@ -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);
|
||||
}
|
||||
}
|
@ -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);
|
||||
}
|
||||
}
|
@ -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);
|
||||
}
|
||||
}
|
@ -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);
|
||||
}
|
||||
}
|
@ -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);
|
||||
}
|
||||
}
|
@ -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);
|
||||
}
|
||||
}
|
@ -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);
|
||||
}
|
||||
}
|
@ -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);
|
||||
}
|
||||
}
|
@ -0,0 +1,7 @@
|
||||
namespace CarServiceContracts.SearchModels
|
||||
{
|
||||
public class CustomerSearchModel
|
||||
{
|
||||
public int? Id { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,7 @@
|
||||
namespace CarServiceContracts.SearchModels
|
||||
{
|
||||
public class ItemForRepairSearchModel
|
||||
{
|
||||
public int? Id { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,7 @@
|
||||
namespace CarServiceContracts.SearchModels
|
||||
{
|
||||
public class ItemSearchModel
|
||||
{
|
||||
public int? Id { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,7 @@
|
||||
namespace CarServiceContracts.SearchModels
|
||||
{
|
||||
public class RepairRequestSearchModel
|
||||
{
|
||||
public int? Id { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,7 @@
|
||||
namespace CarServiceContracts.SearchModels
|
||||
{
|
||||
public class VehicleSearchModel
|
||||
{
|
||||
public int? Id { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,7 @@
|
||||
namespace CarServiceContracts.SearchModels
|
||||
{
|
||||
public class WorkInRequestSearchModel
|
||||
{
|
||||
public int? Id { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,7 @@
|
||||
namespace CarServiceContracts.SearchModels
|
||||
{
|
||||
public class WorkPaymentSearchModel
|
||||
{
|
||||
public int? Id { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,7 @@
|
||||
namespace CarServiceContracts.SearchModels
|
||||
{
|
||||
public class WorkSearchModel
|
||||
{
|
||||
public int? Id { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,7 @@
|
||||
namespace CarServiceContracts.SearchModels
|
||||
{
|
||||
public class WorkerSearchModel
|
||||
{
|
||||
public int? Id { get; set; }
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user