Files
piaps_kursach/SoftwareApplication/SoftwareContracts/ViewModels/TestViewModel.cs

27 lines
815 B
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SoftwareDateModels.Enums;
using SoftwareDateModels.Models;
namespace SoftwareContracts.ViewModels
{
public class TestViewModel:ITestModel
{
public int Id { get; set; }
[DisplayName("Описание теста")]
public string Name { get; set; } = string.Empty;
[DisplayName("Дата проведения")]
[DisplayFormat(DataFormatString = "{0:dd-MM-yyyy}", ApplyFormatInEditMode = true)]
public DateTime CreatedDate { get; set; } = DateTime.Now;
[DisplayName("Статус")]
public TestStatus TestStatus { get; set; } = TestStatus.Провален;
public int ProjectId { get; set; }
}
}