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

33 lines
1.0 KiB
C#

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 ProjectViewModel : IProjectModel
{
public int Id { get; set; }
[DisplayName("Название проекта")]
public string Name { get; set; }=string.Empty;
[DisplayName("Описание проекта")]
public string Description { get; set; } = string.Empty;
[DisplayName("Дата создания")]
[DisplayFormat(DataFormatString = "{0:yyyy-MM-dd}", ApplyFormatInEditMode = true)]
public DateTime CreatedDate { get; set; }
[DisplayName("Статус")]
public ProjectStatus ProjectStatus { get; set; } = ProjectStatus.InDevelopment;
public int UserId { get; set; }
public List<IssueViewModel> Issues { get; set; } = new();
public List<TestViewModel> Tests { get; set; } = new();
}
}