Написаны Contracts.ViewModels для Поставщика

This commit is contained in:
Danil Markov 2023-04-04 14:40:26 +04:00
parent 2ac4958622
commit 8423f1fdfd
5 changed files with 60 additions and 5 deletions

View File

@ -11,6 +11,6 @@ namespace UniversityContracts.BindingModels
{ {
public int Id { get; set; } public int Id { get; set; }
public string Name { get; set; } = string.Empty; public string Name { get; set; } = string.Empty;
public DateTime Date { get; set; } public DateTime Date { get; set; } = DateTime.Now;
} }
} }

View File

@ -6,10 +6,6 @@
<Nullable>enable</Nullable> <Nullable>enable</Nullable>
</PropertyGroup> </PropertyGroup>
<ItemGroup>
<Folder Include="ViewModels\" />
</ItemGroup>
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\UniversityModels\UniversityModels.csproj" /> <ProjectReference Include="..\UniversityModels\UniversityModels.csproj" />
</ItemGroup> </ItemGroup>

View File

@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UniversityModels.Models;
namespace UniversityContracts.ViewModels
{
public class DocumentViewModel : IDocumentModel
{
public int Id { get; set; }
[DisplayName("Название документа")]
public string Name { get; set; } = string.Empty;
[DisplayName("Дата создания документа")]
public DateTime Date { get; set; } = DateTime.Now;
}
}

View File

@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UniversityModels.Models;
namespace UniversityContracts.ViewModels
{
public class EducationStatusViewModel : IEducationStatusModel
{
public int Id { get; set; }
[DisplayName("Название документа")]
public string Name { get; set; } = string.Empty;
}
}

View File

@ -0,0 +1,23 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UniversityModels.Models;
namespace UniversityContracts.ViewModels
{
public class StudentViewModel : IStudentModel
{
public int Id { get; set; }
[DisplayName("Имя студента")]
public string Name { get; set; } = string.Empty;
[DisplayName("Фамилия студента")]
public string Surname { get; set; } = string.Empty;
[DisplayName("Дата рождения студента")]
public DateTime DateOfBirth { get; set; } = DateTime.Now;
public int StudentCard { get; set; }
public int EducationStatusId { get; set; }
}
}