refactoring
This commit is contained in:
parent
3ca8f0c7d2
commit
1e7d4a3754
@ -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; }
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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; }
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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; }
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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; }
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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; }
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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; }
|
||||
}
|
||||
}
|
||||
|
@ -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; }
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user