refactoring models and cotracts

This commit is contained in:
MaxKarme 2023-04-09 00:09:22 +04:00
parent c863490d68
commit 231839d439
8 changed files with 7 additions and 3 deletions

View File

@ -9,5 +9,6 @@ namespace UniversityContracts.BindingModels
public string ExaminationForm { get; set; } = String.Empty;
public MarkType Mark { get; set; } = MarkType.Неизвестен;
public DateTime Date { get; set; } = DateTime.SpecifyKind(DateTime.Now, DateTimeKind.Utc);
public Dictionary<int, IStudentModel> Students { get; set; } = new();
}
}

View File

@ -7,7 +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();
public Dictionary<int, IStatementModel> Statements { get; set; } = new();
}
}

View File

@ -6,5 +6,7 @@ namespace UniversityContracts.SearchModels
public class ExaminationResultSearchModel
{
public int? Id { get; set; }
DateTime? From { get; set; }
DateTime? To { get; set; }
}
}

View File

@ -5,5 +5,7 @@ namespace UniversityContracts.SearchModels
public class StatementSearchModel
{
public int? Id { get; set; }
DateTime? From { get; set; }
DateTime? To { get; set; }
}
}

View File

@ -9,5 +9,6 @@ namespace UniversityContracts.ViewModels
public string ExaminationForm { get; set; } = String.Empty;
public MarkType Mark { get; set; } = MarkType.Неизвестен;
public DateTime Date { get; set; } = DateTime.SpecifyKind(DateTime.Now, DateTimeKind.Utc);
public Dictionary<int, IStudentModel> Students { get; set; } = new();
}
}

View File

@ -7,7 +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();
public Dictionary<int, IStatementModel> Statements { get; set; } = new();
}
}

View File

@ -6,5 +6,6 @@ namespace UniversityDataModels.Models
String ExaminationForm { get; }
MarkType Mark { get; }
DateTime Date { get; }
Dictionary<int, IStudentModel> Students { get; }
}
}

View File

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