Two things:
* User views its devices, from a /manage index link * Yavsc.Server resurection
This commit is contained in:
22
Yavsc.Server/ViewModels/Administration/RoleInfo.cs
Normal file
22
Yavsc.Server/ViewModels/Administration/RoleInfo.cs
Normal file
@ -0,0 +1,22 @@
|
||||
using System.Linq;
|
||||
using Microsoft.AspNet.Identity.EntityFramework;
|
||||
|
||||
namespace Yavsc.ViewModels.Administration
|
||||
{
|
||||
public class RoleInfo
|
||||
{
|
||||
public RoleInfo ()
|
||||
{
|
||||
|
||||
}
|
||||
public RoleInfo ( IdentityRole role)
|
||||
{
|
||||
Name = role.Name;
|
||||
Id = role.Id;
|
||||
Users = role.Users.Select(u => u.UserId).ToArray();
|
||||
}
|
||||
public string Id { get; set; }
|
||||
public string Name { get; set; }
|
||||
public string[] Users { get; set; }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user