files tree made better.
This commit is contained in:
parent
ffbf032480
commit
ccc91bbf19
1630 changed files with 18209 additions and 41860 deletions
11
src/Yavsc.Server/ViewModels/Administration/AdminViewModel.cs
Normal file
11
src/Yavsc.Server/ViewModels/Administration/AdminViewModel.cs
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
|
||||
namespace Yavsc.ViewModels.Administration {
|
||||
|
||||
public class AdminViewModel {
|
||||
public RoleInfo [] Roles { get; set; }
|
||||
public int AdminCount { get; set; }
|
||||
public bool YouAreAdmin { get; set; }
|
||||
|
||||
public int UserCount { get; set; }
|
||||
}
|
||||
}
|
||||
19
src/Yavsc.Server/ViewModels/Administration/RoleInfo.cs
Normal file
19
src/Yavsc.Server/ViewModels/Administration/RoleInfo.cs
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
namespace Yavsc.ViewModels.Administration
|
||||
{
|
||||
public class RoleInfo
|
||||
{
|
||||
public RoleInfo ()
|
||||
{
|
||||
|
||||
}
|
||||
public RoleInfo ( string roleName, string roleId, string[] users)
|
||||
{
|
||||
Name = roleName; // role.Name;
|
||||
Id = roleId; // role.Id;
|
||||
Users = users ; // role.Users.Select(u => u.UserId).ToArray();
|
||||
}
|
||||
public string Id { get; set; }
|
||||
public string Name { get; set; }
|
||||
public string[] Users { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
using Yavsc.Abstract.Identity;
|
||||
|
||||
namespace Yavsc.ViewModels.Administration
|
||||
{
|
||||
public class RoleUserCollection
|
||||
{
|
||||
public RoleUserCollection()
|
||||
{
|
||||
|
||||
}
|
||||
public string Id { get; set; }
|
||||
public string Name { get; set; }
|
||||
public UserInfo[] Users { get; set; }
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue