34 lines
972 B
C#
34 lines
972 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using TaskTrackerModels.Enums;
|
|
using TaskTrackerModels.Models;
|
|
|
|
namespace TaskTrackerContracts.ViewModels
|
|
{
|
|
public class TaskViewModel : ITaskModel
|
|
{
|
|
[DisplayName("Задача")]
|
|
public string Name { get; set; } = string.Empty;
|
|
[DisplayName("Статус задачи")]
|
|
public string Status { get; set; }
|
|
[DisplayName("Дата создания")]
|
|
public DateTime DateCreate { get; set; }
|
|
[DisplayName("Дедлайн")]
|
|
public DateTime Deadline { get; set; }
|
|
[DisplayName("Дата выполнения")]
|
|
public DateTime? DateDone { get; set; }
|
|
|
|
public int ProjectId { get; set; }
|
|
[DisplayName("Проект")]
|
|
public string ProjectName { get; set; } = string.Empty;
|
|
|
|
public Dictionary<int, (IEmployeeModel, string)> TaskEmployees { get; set; } = new();
|
|
|
|
public int Id { get; set; }
|
|
}
|
|
}
|