Merge pull request 'Role interfaces' (#2) from dev into registration
Reviewed-on: #2
This commit is contained in:
commit
5e0fb33ebe
@ -6,8 +6,4 @@
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="Models\" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
13
DataModels/IId.cs
Normal file
13
DataModels/IId.cs
Normal file
@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace DataModels
|
||||
{
|
||||
public interface IId
|
||||
{
|
||||
Guid Id { get; }
|
||||
}
|
||||
}
|
13
DataModels/Models/IRole.cs
Normal file
13
DataModels/Models/IRole.cs
Normal file
@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace DataModels.Models
|
||||
{
|
||||
public interface IRole : IId
|
||||
{
|
||||
string Name { get; }
|
||||
}
|
||||
}
|
18
DataModels/Models/IUser.cs
Normal file
18
DataModels/Models/IUser.cs
Normal file
@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace DataModels.Models
|
||||
{
|
||||
public interface IUser : IId
|
||||
{
|
||||
string FirstName { get; }
|
||||
string SecondName { get; }
|
||||
string PasswordHash { get; }
|
||||
string Email { get; }
|
||||
DateTime Birthday { get; }
|
||||
Guid RoleId { get; }
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user