биндинги
This commit is contained in:
parent
bead0ab7b1
commit
bcc3913d96
16
Course/Contracts/BindingModels/MachineBindingModel.cs
Normal file
16
Course/Contracts/BindingModels/MachineBindingModel.cs
Normal file
@ -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; }
|
||||
}
|
||||
}
|
18
Course/Contracts/BindingModels/WorkerBindingModel.cs
Normal file
18
Course/Contracts/BindingModels/WorkerBindingModel.cs
Normal file
@ -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; }
|
||||
}
|
||||
}
|
17
Course/Contracts/BindingModels/WorkshopBindingModel.cs
Normal file
17
Course/Contracts/BindingModels/WorkshopBindingModel.cs
Normal file
@ -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; }
|
||||
}
|
||||
}
|
@ -7,11 +7,14 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="BindingModels\" />
|
||||
<Folder Include="BusinessLogicsContracts\" />
|
||||
<Folder Include="SearchModels\" />
|
||||
<Folder Include="StoragesContracts\" />
|
||||
<Folder Include="ViewModels\" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\DataModels\DataModels.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
Loading…
Reference in New Issue
Block a user