preparing to feed abstract

test should run ok [modulo config]
This commit is contained in:
2018-07-15 06:47:41 +02:00
parent 3505d5aa6c
commit 5f26e97f0a
36 changed files with 766 additions and 244 deletions

View File

@ -1,5 +1,4 @@
using System.Linq;
using Microsoft.AspNet.Identity.EntityFramework;
namespace Yavsc.ViewModels.Administration
{
@ -9,11 +8,11 @@ namespace Yavsc.ViewModels.Administration
{
}
public RoleInfo ( IdentityRole role)
public RoleInfo ( string roleName, string roleId, string[] users)
{
Name = role.Name;
Id = role.Id;
Users = role.Users.Select(u => u.UserId).ToArray();
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; }