refactoring

This commit is contained in:
MaxKarme 2023-04-02 17:41:41 +04:00
parent 3ca8f0c7d2
commit 1e7d4a3754
18 changed files with 54 additions and 54 deletions

View File

@ -4,8 +4,8 @@ namespace UniversityContracts.BindingModels
{
public class ActivityBindingModel : IActivityModel
{
public int Id { get; }
public DateTime Date { get; } = DateTime.SpecifyKind(DateTime.Now, DateTimeKind.Utc);
public int Number { get; }
public int Id { get; set; }
public DateTime Date { get; set; } = DateTime.SpecifyKind(DateTime.Now, DateTimeKind.Utc);
public int Number { get; set; }
}
}

View File

@ -4,8 +4,8 @@ namespace UniversityContracts.BindingModels
{
public class DisciplineBindingModel : IDisciplineModel
{
public int Id { get; }
public string Name { get; } = String.Empty;
public string Department { get; } = String.Empty;
public int Id { get; set; }
public string Name { get; set; } = String.Empty;
public string Department { get; set; } = String.Empty;
}
}

View File

@ -5,9 +5,9 @@ namespace UniversityContracts.BindingModels
{
public class ExaminationResultBindingModel : IExaminationResultModel
{
public int Id { get; }
public string ExaminationForm { get; } = String.Empty;
public MarkType Mark { get; } = MarkType.Неизвестен;
public DateTime Date { get; } = DateTime.SpecifyKind(DateTime.Now, DateTimeKind.Utc);
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);
}
}

View File

@ -4,7 +4,7 @@ namespace UniversityContracts.BindingModels
{
public class ReportTypeBindingModel : IReportTypeModel
{
public int Id { get; }
public string Name { get; } = String.Empty;
public int Id { get; set; }
public string Name { get; set; } = String.Empty;
}
}

View File

@ -4,8 +4,8 @@ namespace UniversityContracts.BindingModels
{
public class StatementBindingModel : IStatementModel
{
public int Id { get; }
public DateTime Date { get; } = DateTime.SpecifyKind(DateTime.Now, DateTimeKind.Utc);
public int HoursCount { get; }
public int Id { get; set; }
public DateTime Date { get; set; } = DateTime.SpecifyKind(DateTime.Now, DateTimeKind.Utc);
public int HoursCount { get; set; }
}
}

View File

@ -4,8 +4,8 @@ namespace UniversityContracts.BindingModels
{
public class StudentBindingModel : IStudentModel
{
public int Id { get; }
public string Name { get; } = String.Empty;
public string RecordCardNumber { get; } = String.Empty;
public int Id { get; set; }
public string Name { get; set; } = String.Empty;
public string RecordCardNumber { get; set; } = String.Empty;
}
}

View File

@ -4,8 +4,8 @@ namespace UniversityContracts.SearchModels
{
public class ActivitySearchModel : IActivityModel
{
public int Id { get; }
public DateTime Date { get; } = DateTime.SpecifyKind(DateTime.Now, DateTimeKind.Utc);
public int Number { get; }
public int Id { get; set; }
public DateTime Date { get; set; } = DateTime.SpecifyKind(DateTime.Now, DateTimeKind.Utc);
public int Number { get; set; }
}
}

View File

@ -4,8 +4,8 @@ namespace UniversityContracts.SearchModels
{
public class DisciplineSearchModel : IDisciplineModel
{
public int Id { get; }
public string Name { get; } = String.Empty;
public string Department { get; } = String.Empty;
public int Id { get; set; }
public string Name { get; set; } = String.Empty;
public string Department { get; set; } = String.Empty;
}
}

View File

@ -5,9 +5,9 @@ namespace UniversityContracts.SearchModels
{
public class ExaminationResultSearchModel : IExaminationResultModel
{
public int Id { get; }
public string ExaminationForm { get; } = String.Empty;
public MarkType Mark { get; } = MarkType.Неизвестен;
public DateTime Date { get; } = DateTime.SpecifyKind(DateTime.Now, DateTimeKind.Utc);
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);
}
}

View File

@ -4,7 +4,7 @@ namespace UniversityContracts.SearchModels
{
public class ReportTypeSearchModel : IReportTypeModel
{
public int Id { get; }
public string Name { get; } = String.Empty;
public int Id { get; set; }
public string Name { get; set; } = String.Empty;
}
}

View File

@ -4,8 +4,8 @@ namespace UniversityContracts.SearchModels
{
public class StatementSearchModel : IStatementModel
{
public int Id { get; }
public DateTime Date { get; } = DateTime.SpecifyKind(DateTime.Now, DateTimeKind.Utc);
public int HoursCount { get; }
public int Id { get; set; }
public DateTime Date { get; set; } = DateTime.SpecifyKind(DateTime.Now, DateTimeKind.Utc);
public int HoursCount { get; set; }
}
}

View File

@ -4,8 +4,8 @@ namespace UniversityContracts.SearchModels
{
public class StudentSearchModel : IStudentModel
{
public int Id { get; }
public string Name { get; } = String.Empty;
public string RecordCardNumber { get; } = String.Empty;
public int Id { get; set; }
public string Name { get; set; } = String.Empty;
public string RecordCardNumber { get; set; } = String.Empty;
}
}

View File

@ -4,8 +4,8 @@ namespace UniversityContracts.ViewModels
{
public class ActivityViewModel : IActivityModel
{
public int Id { get; }
public DateTime Date { get; } = DateTime.SpecifyKind(DateTime.Now, DateTimeKind.Utc);
public int Number { get; }
public int Id { get; set; }
public DateTime Date { get; set; } = DateTime.SpecifyKind(DateTime.Now, DateTimeKind.Utc);
public int Number { get; set; }
}
}

View File

@ -4,8 +4,8 @@ namespace UniversityContracts.ViewModels
{
public class DisciplineViewModel : IDisciplineModel
{
public int Id { get; }
public string Name { get; } = String.Empty;
public string Department { get; } = String.Empty;
public int Id { get; set; }
public string Name { get; set; } = String.Empty;
public string Department { get; set; } = String.Empty;
}
}

View File

@ -5,9 +5,9 @@ namespace UniversityContracts.ViewModels
{
public class ExaminationResultSearchModel : IExaminationResultModel
{
public int Id { get; }
public string ExaminationForm { get; } = String.Empty;
public MarkType Mark { get; } = MarkType.Неизвестен;
public DateTime Date { get; } = DateTime.SpecifyKind(DateTime.Now, DateTimeKind.Utc);
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);
}
}

View File

@ -4,7 +4,7 @@ namespace UniversityContracts.ViewModels
{
public class ReportTypeViewModel : IReportTypeModel
{
public int Id { get; }
public string Name { get; } = String.Empty;
public int Id { get; set; }
public string Name { get; set; } = String.Empty;
}
}

View File

@ -4,8 +4,8 @@ namespace UniversityContracts.ViewModels
{
public class StatementViewModel : IStatementModel
{
public int Id { get; }
public DateTime Date { get; } = DateTime.SpecifyKind(DateTime.Now, DateTimeKind.Utc);
public int HoursCount { get; }
public int Id { get; set; }
public DateTime Date { get; set; } = DateTime.SpecifyKind(DateTime.Now, DateTimeKind.Utc);
public int HoursCount { get; set; }
}
}

View File

@ -4,8 +4,8 @@ namespace UniversityContracts.ViewModels
{
public class StudentViewModel : IStatementModel
{
public int Id { get; }
public DateTime Date { get; } = DateTime.SpecifyKind(DateTime.Now, DateTimeKind.Utc);
public int HoursCount { get; }
public int Id { get; set; }
public DateTime Date { get; set; } = DateTime.SpecifyKind(DateTime.Now, DateTimeKind.Utc);
public int HoursCount { get; set; }
}
}