diff --git a/Contracts/BindingModels/RoleBindingModel.cs b/Contracts/BindingModels/RoleBindingModel.cs new file mode 100644 index 0000000..8e33f73 --- /dev/null +++ b/Contracts/BindingModels/RoleBindingModel.cs @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Contracts.BindingModels +{ + public class RoleBindingModel + { + public Guid Id { get; set; } + public string Name { get; set; } = string.Empty; + } +} \ No newline at end of file diff --git a/Contracts/BindingModels/UserBindingModel.cs b/Contracts/BindingModels/UserBindingModel.cs new file mode 100644 index 0000000..7b6c7c6 --- /dev/null +++ b/Contracts/BindingModels/UserBindingModel.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Contracts.BindingModels +{ + public class UserBindingModel + { + public Guid Id { get; set; } + public string FirstName { get; set; } = string.Empty; + public string SecondName { get; set; } = string.Empty; + public string Email { get; set; } = string.Empty; + public string PasswordHash { get; set; } = string.Empty; + public DateTime Birthday { get; set; } + public RoleBindingModel Role { get; set; } = null!; + } +} \ No newline at end of file diff --git a/Contracts/Contracts.csproj b/Contracts/Contracts.csproj index 13d76fe..64eaa86 100644 --- a/Contracts/Contracts.csproj +++ b/Contracts/Contracts.csproj @@ -7,9 +7,6 @@ - - - diff --git a/Contracts/SearchModels/RoleSearchModel.cs b/Contracts/SearchModels/RoleSearchModel.cs new file mode 100644 index 0000000..058eda2 --- /dev/null +++ b/Contracts/SearchModels/RoleSearchModel.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Contracts.SearchModels +{ + public class RoleSearchModel + { + public Guid? Id { get; set; } + } +} \ No newline at end of file diff --git a/Contracts/SearchModels/UserSearchModel.cs b/Contracts/SearchModels/UserSearchModel.cs new file mode 100644 index 0000000..2df2131 --- /dev/null +++ b/Contracts/SearchModels/UserSearchModel.cs @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Contracts.SearchModels +{ + public class UserSearchModel + { + public Guid? Id { get; set; } + public string? Email { get; set; } + } +} \ No newline at end of file diff --git a/Contracts/ViewModels/RoleViewModel.cs b/Contracts/ViewModels/RoleViewModel.cs new file mode 100644 index 0000000..98d5c6f --- /dev/null +++ b/Contracts/ViewModels/RoleViewModel.cs @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Contracts.ViewModels +{ + public class RoleViewModel + { + public Guid Id { get; set; } + public string Name { get; set; } = string.Empty; + } +} \ No newline at end of file diff --git a/Contracts/ViewModels/UserViewModel.cs b/Contracts/ViewModels/UserViewModel.cs new file mode 100644 index 0000000..4f15600 --- /dev/null +++ b/Contracts/ViewModels/UserViewModel.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Contracts.ViewModels +{ + public class UserViewModel + { + public Guid Id { get; set; } + public string FirstName { get; set; } = string.Empty; + public string SecondName { get; set; } = string.Empty; + public string Email { get; set; } = string.Empty; + public string PasswordHash { get; set; } = string.Empty; + public DateTime Birthday { get; set; } + public RoleViewModel Role { get; set; } = null!; + } +} \ No newline at end of file