add dictionaries in models

This commit is contained in:
MaxKarme 2023-04-07 16:03:41 +04:00
parent f6d00c23bc
commit 37070beac2
6 changed files with 6 additions and 0 deletions

View File

@ -7,5 +7,6 @@ namespace UniversityContracts.BindingModels
public int Id { get; set; }
public DateTime Date { get; set; } = DateTime.SpecifyKind(DateTime.Now, DateTimeKind.Utc);
public int HoursCount { get; set; }
public Dictionary<int, IStudentModel> Students { get; set; } = new();
}
}

View File

@ -7,5 +7,6 @@ namespace UniversityContracts.BindingModels
public int Id { get; set; }
public string Name { get; set; } = String.Empty;
public string RecordCardNumber { get; set; } = String.Empty;
public Dictionary<int, IExaminationResultModel> Results { get; set; } = new();
}
}

View File

@ -7,5 +7,6 @@ namespace UniversityContracts.ViewModels
public int Id { get; set; }
public DateTime Date { get; set; } = DateTime.SpecifyKind(DateTime.Now, DateTimeKind.Utc);
public int HoursCount { get; set; }
public Dictionary<int, IStudentModel> Students { get; set; } = new();
}
}

View File

@ -7,5 +7,6 @@ namespace UniversityContracts.ViewModels
public int Id { get; set; }
public string Name { get; set; } = String.Empty;
public string RecordCardNumber { get; set; } = String.Empty;
public Dictionary<int, IExaminationResultModel> Results { get; set; } = new();
}
}

View File

@ -4,5 +4,6 @@
{
DateTime Date { get; }
int HoursCount { get; }
Dictionary<int, IStudentModel> Students { get; }
}
}

View File

@ -4,5 +4,6 @@
{
String Name { get; }
String RecordCardNumber { get; }
Dictionary<int, IExaminationResultModel> Results { get; }
}
}