Role interfaces
This commit is contained in:
parent
cc2fa7bdf3
commit
59857d80f3
@ -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