Лена. Добавила BindingModels в слое контрактов для 5 этапа

This commit is contained in:
ekallin 2024-04-17 18:23:27 +04:00
parent 8bd20e8bbd
commit 6e7d7a8dfd
5 changed files with 70 additions and 1 deletions

View File

@ -0,0 +1,16 @@
using PolyclinicDataModels.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PolyclinicContracts.BindingModels
{
public class MedicamentBindingModel : IMedicament
{
public int Id { get; set; }
public string Name { get; set; } = string.Empty;
public string Comment { get; set; } = string.Empty;
}
}

View File

@ -0,0 +1,16 @@
using PolyclinicDataModels.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PolyclinicContracts.BindingModels
{
public class ProcedureBindingModel : IProcedure
{
public int Id { get; set; }
public string Name { get; set; } = string.Empty;
public string Comment { get; set; } = string.Empty;
}
}

View File

@ -0,0 +1,16 @@
using PolyclinicDataModels.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PolyclinicContracts.BindingModels
{
public class RecieptBindingModel : IReciept
{
public int Id { get; set; }
public int CountProcedures { get; set; }
public string Comment { get; set; } = string.Empty;
}
}

View File

@ -0,0 +1,18 @@
using PolyclinicDataModels.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PolyclinicContracts.BindingModels
{
public class SuretorBindingModel : ISuretor
{
public int Id { get; set; }
public string FIO { get; set; } = string.Empty;
public DateTime BirthDay { get; set; }
public string Password { get; set; } = "123";
public string RepeatPassword { get; set; } = "123";
}
}

View File

@ -7,11 +7,14 @@
</PropertyGroup>
<ItemGroup>
<Folder Include="BindingModels\" />
<Folder Include="StoragesContracts\" />
<Folder Include="SearchModels\" />
<Folder Include="ViewModels\" />
<Folder Include="BusinessLogicsContracts\" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\PolyclinicDataModels\PolyclinicDataModels.csproj" />
</ItemGroup>
</Project>