diff --git a/CaseAccounting/CaseAccountingContracts/BindingModels/CaseBindingModel.cs b/CaseAccounting/CaseAccountingContracts/BindingModels/CaseBindingModel.cs index 49acb6d..614dfd3 100644 --- a/CaseAccounting/CaseAccountingContracts/BindingModels/CaseBindingModel.cs +++ b/CaseAccounting/CaseAccountingContracts/BindingModels/CaseBindingModel.cs @@ -1,4 +1,5 @@ -using System; +using CaseAccountingDataModels.Models; +using System; using System.Collections.Generic; using System.Linq; using System.Text; @@ -6,7 +7,22 @@ using System.Threading.Tasks; namespace CaseAccountingContracts.BindingModels { - public class CaseBindingModel + public class CaseBindingModel : ICaseModel { - } + public int Id { get; set; } + + public string Name { get; set; } = string.Empty; + + public string Applicant { get; set; } = string.Empty; + + public string Defendant { get; set; } = string.Empty; + + public string Annotation { get; set; } = string.Empty; + + public DateTime Date { get; set; } = DateTime.SpecifyKind(DateTime.Now, DateTimeKind.Utc); + + public int SpecializationId { get; set; } + + public int UserId { get; set; } + } } diff --git a/CaseAccounting/CaseAccountingContracts/BindingModels/ContractBindingModel.cs b/CaseAccounting/CaseAccountingContracts/BindingModels/ContractBindingModel.cs new file mode 100644 index 0000000..8e49cbe --- /dev/null +++ b/CaseAccounting/CaseAccountingContracts/BindingModels/ContractBindingModel.cs @@ -0,0 +1,20 @@ +using CaseAccountingDataModels.Models; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace CaseAccountingContracts.BindingModels +{ + public class ContractBindingModel : IContractModel + { + public string Service { get; set; } = string.Empty; + + public decimal Coast { get; set; } + + public DateTime Date { get; set; } = DateTime.SpecifyKind(DateTime.Now, DateTimeKind.Utc); + + public int Id { get; set; } + } +} diff --git a/CaseAccounting/CaseAccountingContracts/BindingModels/DealBindingModel.cs b/CaseAccounting/CaseAccountingContracts/BindingModels/DealBindingModel.cs new file mode 100644 index 0000000..e085752 --- /dev/null +++ b/CaseAccounting/CaseAccountingContracts/BindingModels/DealBindingModel.cs @@ -0,0 +1,20 @@ +using CaseAccountingDataModels.Models; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace CaseAccountingContracts.BindingModels +{ + public class DealBindingModel : IDealModel + { + public string Subject { get; set; } = string.Empty; + + public string Responsibilities { get; set; } = string.Empty; + + public DateTime Date { get; set; } = DateTime.SpecifyKind(DateTime.Now, DateTimeKind.Utc); + + public int Id { get; set; } + } +} diff --git a/CaseAccounting/CaseAccountingContracts/BindingModels/HearingBindingModel.cs b/CaseAccounting/CaseAccountingContracts/BindingModels/HearingBindingModel.cs new file mode 100644 index 0000000..0aeb6cd --- /dev/null +++ b/CaseAccounting/CaseAccountingContracts/BindingModels/HearingBindingModel.cs @@ -0,0 +1,20 @@ +using CaseAccountingDataModels.Models; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace CaseAccountingContracts.BindingModels +{ + public class HearingBindingModel : IHearingModel + { + public string Information { get; set; } = string.Empty; + + public DateTime Date { get; set; } = DateTime.SpecifyKind(DateTime.Now, DateTimeKind.Utc); + + public int CaseId { get; set; } + + public int Id { get; set; } + } +} diff --git a/CaseAccounting/CaseAccountingContracts/BindingModels/LawyerBindingModel.cs b/CaseAccounting/CaseAccountingContracts/BindingModels/LawyerBindingModel.cs new file mode 100644 index 0000000..512642d --- /dev/null +++ b/CaseAccounting/CaseAccountingContracts/BindingModels/LawyerBindingModel.cs @@ -0,0 +1,24 @@ +using CaseAccountingDataModels.Models; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace CaseAccountingContracts.BindingModels +{ + public class LawyerBindingModel : ILawyerModel + { + public string Name { get; set; } = string.Empty; + + public string Surname { get; set; } = string.Empty; + + public string Patronymic { get; set; } = string.Empty; + + public int Experience { get; set; } + + public int SpecializationId { get; set; } + + public int Id { get; set; } + } +} diff --git a/CaseAccounting/CaseAccountingContracts/BindingModels/RoleBindingModel.cs b/CaseAccounting/CaseAccountingContracts/BindingModels/RoleBindingModel.cs new file mode 100644 index 0000000..3c7b020 --- /dev/null +++ b/CaseAccounting/CaseAccountingContracts/BindingModels/RoleBindingModel.cs @@ -0,0 +1,16 @@ +using CaseAccountingDataModels.Models; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace CaseAccountingContracts.BindingModels +{ + public class RoleBindingModel : IRoleModel + { + public string Name { get; set; } = string.Empty; + + public int Id { get; set; } + } +} diff --git a/CaseAccounting/CaseAccountingContracts/BindingModels/SpecializationBindingModel.cs b/CaseAccounting/CaseAccountingContracts/BindingModels/SpecializationBindingModel.cs new file mode 100644 index 0000000..3de52e3 --- /dev/null +++ b/CaseAccounting/CaseAccountingContracts/BindingModels/SpecializationBindingModel.cs @@ -0,0 +1,16 @@ +using CaseAccountingDataModels.Models; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace CaseAccountingContracts.BindingModels +{ + public class SpecializationBindingModel : ISpecializationModel + { + public string Name { get; set; } = string.Empty; + + public int Id { get; set; } + } +} diff --git a/CaseAccounting/CaseAccountingContracts/BindingModels/UserBindingModel.cs b/CaseAccounting/CaseAccountingContracts/BindingModels/UserBindingModel.cs new file mode 100644 index 0000000..fef235a --- /dev/null +++ b/CaseAccounting/CaseAccountingContracts/BindingModels/UserBindingModel.cs @@ -0,0 +1,20 @@ +using CaseAccountingDataModels.Models; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace CaseAccountingContracts.BindingModels +{ + public class UserBindingModel : IUserModel + { + public string Login { get; set; } = string.Empty; + + public string Password { get; set; } = string.Empty; + + public int RoleId { get; set; } + + public int Id { get; set; } + } +} diff --git a/CaseAccounting/CaseAccountingContracts/CaseAccountingContracts.csproj b/CaseAccounting/CaseAccountingContracts/CaseAccountingContracts.csproj index 132c02c..428fc6f 100644 --- a/CaseAccounting/CaseAccountingContracts/CaseAccountingContracts.csproj +++ b/CaseAccounting/CaseAccountingContracts/CaseAccountingContracts.csproj @@ -6,4 +6,8 @@ enable + + + + diff --git a/CaseAccounting/CaseAccountingContracts/SearchModels/CaseSearchModel.cs b/CaseAccounting/CaseAccountingContracts/SearchModels/CaseSearchModel.cs new file mode 100644 index 0000000..2f22a7b --- /dev/null +++ b/CaseAccounting/CaseAccountingContracts/SearchModels/CaseSearchModel.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace CaseAccountingContracts.SearchModels +{ + public class CaseSearchModel + { + public int? Id { get; set; } + + public string? Name { get; set; } + + public string? Applicant { get; set; } + + public string? Defendant { get; set; } + + public DateTime? Date { get; set; } + } +} diff --git a/CaseAccounting/CaseAccountingContracts/SearchModels/ContractSearchModel.cs b/CaseAccounting/CaseAccountingContracts/SearchModels/ContractSearchModel.cs new file mode 100644 index 0000000..9e79462 --- /dev/null +++ b/CaseAccounting/CaseAccountingContracts/SearchModels/ContractSearchModel.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace CaseAccountingContracts.SearchModels +{ + public class ContractSearchModel + { + public int? Id { get; set; } + + public DateTime? Date { get; set; } + } +} diff --git a/CaseAccounting/CaseAccountingContracts/SearchModels/DealSearchModel.cs b/CaseAccounting/CaseAccountingContracts/SearchModels/DealSearchModel.cs new file mode 100644 index 0000000..7fe6230 --- /dev/null +++ b/CaseAccounting/CaseAccountingContracts/SearchModels/DealSearchModel.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace CaseAccountingContracts.SearchModels +{ + public class DealSearchModel + { + public int? Id { get; set; } + + public DateTime? Date { get; set; } + } +} diff --git a/CaseAccounting/CaseAccountingContracts/SearchModels/HearingModel.cs b/CaseAccounting/CaseAccountingContracts/SearchModels/HearingModel.cs new file mode 100644 index 0000000..74e416d --- /dev/null +++ b/CaseAccounting/CaseAccountingContracts/SearchModels/HearingModel.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace CaseAccountingContracts.SearchModels +{ + public class HearingModel + { + public int? Id { get; set; } + + public DateTime? Date { get; set; } + + public int? CaseId { get; set; } + } +} diff --git a/CaseAccounting/CaseAccountingContracts/SearchModels/LawyerSearchModel.cs b/CaseAccounting/CaseAccountingContracts/SearchModels/LawyerSearchModel.cs new file mode 100644 index 0000000..6276b85 --- /dev/null +++ b/CaseAccounting/CaseAccountingContracts/SearchModels/LawyerSearchModel.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace CaseAccountingContracts.SearchModels +{ + public class LawyerSearchModel + { + public int? Id { get; set; } + + public int SpecializationId { get; set; } + } +} diff --git a/CaseAccounting/CaseAccountingContracts/SearchModels/RoleSearchModel.cs b/CaseAccounting/CaseAccountingContracts/SearchModels/RoleSearchModel.cs new file mode 100644 index 0000000..79ff0c3 --- /dev/null +++ b/CaseAccounting/CaseAccountingContracts/SearchModels/RoleSearchModel.cs @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace CaseAccountingContracts.SearchModels +{ + public class RoleSearchModel + { + public int? Id { get; set; } + public string? Name { get; set; } + } +} diff --git a/CaseAccounting/CaseAccountingContracts/SearchModels/SpecializationSearchModel.cs b/CaseAccounting/CaseAccountingContracts/SearchModels/SpecializationSearchModel.cs new file mode 100644 index 0000000..d5e7fac --- /dev/null +++ b/CaseAccounting/CaseAccountingContracts/SearchModels/SpecializationSearchModel.cs @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace CaseAccountingContracts.SearchModels +{ + public class SpecializationSearchModel + { + public int? Id { get; set; } + public string? Name { get; set; } + } +} diff --git a/CaseAccounting/CaseAccountingContracts/SearchModels/UserSearchModel.cs b/CaseAccounting/CaseAccountingContracts/SearchModels/UserSearchModel.cs new file mode 100644 index 0000000..7122c6d --- /dev/null +++ b/CaseAccounting/CaseAccountingContracts/SearchModels/UserSearchModel.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace CaseAccountingContracts.SearchModels +{ + public class UserSearchModel + { + public int? Id { get; set; } + } +}