diff --git a/CarService/CarServiceContracts/BindingModels/CustomerBindingModel.cs b/CarService/CarServiceContracts/BindingModels/CustomerBindingModel.cs new file mode 100644 index 0000000..09194c9 --- /dev/null +++ b/CarService/CarServiceContracts/BindingModels/CustomerBindingModel.cs @@ -0,0 +1,13 @@ +using CarServiceContracts.Models; + +namespace CarServiceContracts.BindingModels +{ + public class CustomerBindingModel : ICustomerModel + { + public int Id { get; set; } + public string Login { get; set; } = string.Empty; + public string Password { get; set; } = string.Empty; + public string Name { get; set; } = string.Empty; + public string Surname { get; set; } = string.Empty; + } +} diff --git a/CarService/CarServiceContracts/BindingModels/ItemBindingModel.cs b/CarService/CarServiceContracts/BindingModels/ItemBindingModel.cs new file mode 100644 index 0000000..1ba5581 --- /dev/null +++ b/CarService/CarServiceContracts/BindingModels/ItemBindingModel.cs @@ -0,0 +1,13 @@ +using CarServiceContracts.Models; + +namespace CarServiceContracts.BindingModels +{ + public class ItemBindingModel : IItemModel + { + public int Id { get; set; } + public string Name { get; set; } = string.Empty; + public decimal Price { get; set; } + public int Count { get; set; } + public int WorkerId { get; set; } + } +} diff --git a/CarService/CarServiceContracts/BindingModels/ItemForRepairBindingModel.cs b/CarService/CarServiceContracts/BindingModels/ItemForRepairBindingModel.cs new file mode 100644 index 0000000..4cae329 --- /dev/null +++ b/CarService/CarServiceContracts/BindingModels/ItemForRepairBindingModel.cs @@ -0,0 +1,12 @@ +using CarServiceContracts.Models; + +namespace CarServiceContracts.BindingModels +{ + public class ItemForRepairBindingModel : IItemForRepairModel + { + public int Id { get; set; } + public int Count { get; set; } + public int ItemId { get; set; } + public int RepairRequestId { get; set; } + } +} diff --git a/CarService/CarServiceContracts/BindingModels/RepairRequestBindingModel.cs b/CarService/CarServiceContracts/BindingModels/RepairRequestBindingModel.cs new file mode 100644 index 0000000..0d3dc68 --- /dev/null +++ b/CarService/CarServiceContracts/BindingModels/RepairRequestBindingModel.cs @@ -0,0 +1,11 @@ +using CarServiceContracts.Models; + +namespace CarServiceContracts.BindingModels +{ + public class RepairRequestBindingModel : IRepairRequestModel + { + public int Id { get; set; } + public DateTime DateCreated { get; set; } = DateTime.Now; + public int VehicleId { get; set; } + } +} diff --git a/CarService/CarServiceContracts/BindingModels/VehicleBindingModel.cs b/CarService/CarServiceContracts/BindingModels/VehicleBindingModel.cs new file mode 100644 index 0000000..b28fc1d --- /dev/null +++ b/CarService/CarServiceContracts/BindingModels/VehicleBindingModel.cs @@ -0,0 +1,13 @@ +using CarServiceContracts.Models; + +namespace CarServiceContracts.BindingModels +{ + public class VehicleBindingModel : IVehicleModel + { + public int Id { get; set; } + public string Name { get; set; } = string.Empty; + public string? Plate { get; set; } + public string? VIN { get; set; } + public int CustomerId { get; set; } + } +} diff --git a/CarService/CarServiceContracts/BindingModels/WorkBindingModel.cs b/CarService/CarServiceContracts/BindingModels/WorkBindingModel.cs new file mode 100644 index 0000000..e2660dc --- /dev/null +++ b/CarService/CarServiceContracts/BindingModels/WorkBindingModel.cs @@ -0,0 +1,13 @@ +using CarServiceContracts.Models; + +namespace CarServiceContracts.BindingModels +{ + public class WorkBindingModel : IWorkModel + { + public int Id { get; set; } + public string Name { get; set; } = string.Empty; + public decimal Price { get; set; } + public decimal Duration { get; set; } + public int WorkerId { get; set; } + } +} diff --git a/CarService/CarServiceContracts/BindingModels/WorkInRequestBindingModel.cs b/CarService/CarServiceContracts/BindingModels/WorkInRequestBindingModel.cs new file mode 100644 index 0000000..ddc9e1b --- /dev/null +++ b/CarService/CarServiceContracts/BindingModels/WorkInRequestBindingModel.cs @@ -0,0 +1,13 @@ +using CarServiceContracts.Models; + +namespace CarServiceContracts.BindingModels +{ + public class WorkInRequestBindingModel : IWorkInRequestModel + { + public int Id { get; set; } + public int Count { get; set; } + public decimal Cost { get; set; } + public int RepairRequestId { get; set; } + public int WorkId { get; set; } + } +} diff --git a/CarService/CarServiceContracts/BindingModels/WorkPaymentBindingModel.cs b/CarService/CarServiceContracts/BindingModels/WorkPaymentBindingModel.cs new file mode 100644 index 0000000..ba4500e --- /dev/null +++ b/CarService/CarServiceContracts/BindingModels/WorkPaymentBindingModel.cs @@ -0,0 +1,12 @@ +using CarServiceContracts.Models; + +namespace CarServiceContracts.BindingModels +{ + public class WorkPaymentBindingModel : IWorkPaymentModel + { + public int Id { get; set; } + public DateTime DatePayment { get; set; } + public decimal Sum { get; set; } + public int WorkInRequestId { get; set; } + } +} diff --git a/CarService/CarServiceContracts/BindingModels/WorkerBindingModel.cs b/CarService/CarServiceContracts/BindingModels/WorkerBindingModel.cs new file mode 100644 index 0000000..48c8441 --- /dev/null +++ b/CarService/CarServiceContracts/BindingModels/WorkerBindingModel.cs @@ -0,0 +1,13 @@ +using CarServiceContracts.Models; + +namespace CarServiceContracts.BindingModels +{ + public class WorkerBindingModel : IWorkerModel + { + public int Id { get; set; } + public string Login { get; set; } = string.Empty; + public string Password { get; set; } = string.Empty; + public string Name { get; set; } = string.Empty; + public string Surname { get; set; } = string.Empty; + } +}