From bcc3913d96c16826ac5f51f3f1dc85fd4284627d Mon Sep 17 00:00:00 2001 From: urlilpolly Date: Wed, 3 Apr 2024 13:49:07 +0400 Subject: [PATCH] =?UTF-8?q?=D0=B1=D0=B8=D0=BD=D0=B4=D0=B8=D0=BD=D0=B3?= =?UTF-8?q?=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../BindingModels/MachineBindingModel.cs | 16 ++++++++++++++++ .../BindingModels/WorkerBindingModel.cs | 18 ++++++++++++++++++ .../BindingModels/WorkshopBindingModel.cs | 17 +++++++++++++++++ Course/Contracts/Contracts.csproj | 5 ++++- 4 files changed, 55 insertions(+), 1 deletion(-) create mode 100644 Course/Contracts/BindingModels/MachineBindingModel.cs create mode 100644 Course/Contracts/BindingModels/WorkerBindingModel.cs create mode 100644 Course/Contracts/BindingModels/WorkshopBindingModel.cs diff --git a/Course/Contracts/BindingModels/MachineBindingModel.cs b/Course/Contracts/BindingModels/MachineBindingModel.cs new file mode 100644 index 0000000..b00b669 --- /dev/null +++ b/Course/Contracts/BindingModels/MachineBindingModel.cs @@ -0,0 +1,16 @@ +using DataModels.Models; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Contracts.BindingModels +{ + public class MachineBindingModel : IMachineModel + { + public int Id { get; set; } + public string Title { get; set; } + public string Country { get; set; } + } +} diff --git a/Course/Contracts/BindingModels/WorkerBindingModel.cs b/Course/Contracts/BindingModels/WorkerBindingModel.cs new file mode 100644 index 0000000..717cddc --- /dev/null +++ b/Course/Contracts/BindingModels/WorkerBindingModel.cs @@ -0,0 +1,18 @@ +using DataModels.Models; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Contracts.BindingModels +{ + public class WorkerBindingModel : IWorkerModel + { + public int Id { get; set; } + public string Name { get; set; } + public DateTime Birthday { get; set; } + public string Specialization { get; set; } + public double Salary { get; set; } + } +} diff --git a/Course/Contracts/BindingModels/WorkshopBindingModel.cs b/Course/Contracts/BindingModels/WorkshopBindingModel.cs new file mode 100644 index 0000000..4e567f2 --- /dev/null +++ b/Course/Contracts/BindingModels/WorkshopBindingModel.cs @@ -0,0 +1,17 @@ +using DataModels.Models; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Contracts.BindingModels +{ + public class WorkshopBindingModel : IWorkshopModel + { + public int Id { get; set; } + public string Title { get; set; } + public string Address { get; set; } + public string Director { get; set; } + } +} diff --git a/Course/Contracts/Contracts.csproj b/Course/Contracts/Contracts.csproj index 38b0ca1..8d61df8 100644 --- a/Course/Contracts/Contracts.csproj +++ b/Course/Contracts/Contracts.csproj @@ -7,11 +7,14 @@ - + + + +