diff --git a/University/UniversityContracts/SearchModels/ActivitySearchModel.cs b/University/UniversityContracts/SearchModels/ActivitySearchModel.cs index a1b5768..4e78738 100644 --- a/University/UniversityContracts/SearchModels/ActivitySearchModel.cs +++ b/University/UniversityContracts/SearchModels/ActivitySearchModel.cs @@ -2,10 +2,8 @@ namespace UniversityContracts.SearchModels { - public class ActivitySearchModel : IActivityModel + public class ActivitySearchModel { - public int Id { get; set; } - public DateTime Date { get; set; } = DateTime.SpecifyKind(DateTime.Now, DateTimeKind.Utc); - public int Number { get; set; } + public int? Id { get; set; } } } diff --git a/University/UniversityContracts/SearchModels/DisciplineSearchModel.cs b/University/UniversityContracts/SearchModels/DisciplineSearchModel.cs index 7ae530e..66ff1b4 100644 --- a/University/UniversityContracts/SearchModels/DisciplineSearchModel.cs +++ b/University/UniversityContracts/SearchModels/DisciplineSearchModel.cs @@ -2,10 +2,9 @@ namespace UniversityContracts.SearchModels { - public class DisciplineSearchModel : IDisciplineModel + public class DisciplineSearchModel { - public int Id { get; set; } - public string Name { get; set; } = String.Empty; - public string Department { get; set; } = String.Empty; + public int? Id { get; set; } + public string? Name { get; set; } } } diff --git a/University/UniversityContracts/SearchModels/ExaminationResultSearchModel.cs b/University/UniversityContracts/SearchModels/ExaminationResultSearchModel.cs index b2c979b..4f27f9f 100644 --- a/University/UniversityContracts/SearchModels/ExaminationResultSearchModel.cs +++ b/University/UniversityContracts/SearchModels/ExaminationResultSearchModel.cs @@ -3,11 +3,8 @@ using UniversityDataModels.Models; namespace UniversityContracts.SearchModels { - public class ExaminationResultSearchModel : IExaminationResultModel + public class ExaminationResultSearchModel { - public int Id { get; set; } - 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 int? Id { get; set; } } } diff --git a/University/UniversityContracts/SearchModels/ReportTypeSearchModel.cs b/University/UniversityContracts/SearchModels/ReportTypeSearchModel.cs index 72c645c..b27c834 100644 --- a/University/UniversityContracts/SearchModels/ReportTypeSearchModel.cs +++ b/University/UniversityContracts/SearchModels/ReportTypeSearchModel.cs @@ -2,9 +2,9 @@ namespace UniversityContracts.SearchModels { - public class ReportTypeSearchModel : IReportTypeModel + public class ReportTypeSearchModel { - public int Id { get; set; } - public string Name { get; set; } = String.Empty; + public int? Id { get; set; } + public string? Name { get; set; } } } diff --git a/University/UniversityContracts/SearchModels/StatementSearchModel.cs b/University/UniversityContracts/SearchModels/StatementSearchModel.cs index dc3c24c..7c3ca9d 100644 --- a/University/UniversityContracts/SearchModels/StatementSearchModel.cs +++ b/University/UniversityContracts/SearchModels/StatementSearchModel.cs @@ -2,10 +2,8 @@ namespace UniversityContracts.SearchModels { - public class StatementSearchModel : IStatementModel + public class StatementSearchModel { - public int Id { get; set; } - public DateTime Date { get; set; } = DateTime.SpecifyKind(DateTime.Now, DateTimeKind.Utc); - public int HoursCount { get; set; } + public int? Id { get; set; } } } diff --git a/University/UniversityContracts/SearchModels/StudentSearchModel.cs b/University/UniversityContracts/SearchModels/StudentSearchModel.cs index 820ddf1..815be4a 100644 --- a/University/UniversityContracts/SearchModels/StudentSearchModel.cs +++ b/University/UniversityContracts/SearchModels/StudentSearchModel.cs @@ -2,10 +2,9 @@ namespace UniversityContracts.SearchModels { - public class StudentSearchModel : IStudentModel + public class StudentSearchModel { - public int Id { get; set; } - public string Name { get; set; } = String.Empty; - public string RecordCardNumber { get; set; } = String.Empty; + public int? Id { get; set; } + public string? Name { get; set; } } }