PIbd-42_Kashin_M.I_CPO_Cour.../EmployeeManagmentContracts/ViewModels/VacationViewModel.cs

29 lines
692 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace EmployeeManagmentContracts.ViewModels
{
public class VacationViewModel
{
public int Id { get; set; }
public DateTime StartData { get; set; }
public DateTime EndData { get; set; }
public bool Passed { get; set; }
public int? EmployeeId { get; set; }
public string? EmployeeName { get; set; } = string.Empty;
public string DisplayName
{
get
{
return $"{EmployeeName} ({StartData:dd.MM.yyyy} - {EndData:dd.MM.yyyy})";
}
}
}
}