mirror of
https://github.com/rjNemo/ticket_manager
synced 2026-06-06 08:46:39 +00:00
38 lines
No EOL
1 KiB
C#
38 lines
No EOL
1 KiB
C#
using System;
|
|
using System.Linq;
|
|
using System.Collections.Generic;
|
|
using TicketManager.Models;
|
|
|
|
namespace TicketManager.Resources
|
|
{
|
|
public class ProjectDTORead
|
|
{
|
|
public ProjectDTORead(Project project)
|
|
{
|
|
Id = project.Id;
|
|
Title = project.Title;
|
|
Description = project.Description;
|
|
CreationDate = project.CreationDate;
|
|
EndingDate = project.EndingDate;
|
|
Progression = project.Progression;
|
|
Status = project.Status.ToString();
|
|
Manager = project.Manager != null ? new AppUserDTORead(project.Manager) : null;
|
|
}
|
|
|
|
public int Id { get; set; }
|
|
|
|
public string Title { get; set; }
|
|
|
|
public string Description { get; set; }
|
|
|
|
public DateTime CreationDate { get; private set; } = DateTime.Now;
|
|
|
|
public DateTime EndingDate { get; set; }
|
|
|
|
public decimal Progression { get; set; }
|
|
|
|
public string Status { get; set; }
|
|
|
|
public AppUserDTORead Manager { get; set; }
|
|
}
|
|
} |