30 lines
808 B
C#
30 lines
808 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace StudentPerformanceContracts.ViewModels
|
|
{
|
|
public class StudentExcelViewModel
|
|
{
|
|
public StudentExcelViewModel(int id, string fullname, string format, DateTime admissionDate)
|
|
{
|
|
this.Id = id;
|
|
this.Fullname = fullname;
|
|
this.Format = format;
|
|
this.AdmissionDate = admissionDate;
|
|
}
|
|
|
|
public int Id;
|
|
public string Fullname;
|
|
public string Format;
|
|
public DateTime AdmissionDate;
|
|
|
|
// Новое свойство для отформатированной строки
|
|
public string FormattedAdmissionDate => AdmissionDate.ToString("dd.MM.yyyy HH:mm:ss");
|
|
}
|
|
|
|
|
|
}
|