public ApplicationRole Convert(IdentityRole role) { var r = new ApplicationRole() { Id = role.Id, Name = role.Name, }; return r; }
private static ApplicationRole ConvetRole(IdentityRole r) { var role = new ApplicationRole { Id = r.Id, Name = r.Name, }; return role; }
public bool Insert(RoleViewModel model) { bool result = false; var role = new ApplicationRole(model.RoleName, model.Description); if (_idman.RoleExists(model.RoleName)) { result = false; } else { _idman.CreateRole(model.RoleName, model.Description); result = true; } return result; }
public void Update(ApplicationRole model) { _rolesRepository.Update(model); }
public void Insert(ApplicationRole model) { _rolesRepository.Insert(model); }
public void Delete(ApplicationRole model) { _rolesRepository.Delete(model); }
public EditRoleViewModel(ApplicationRole role) { this.OriginalRoleName = role.Name; this.RoleName = role.Name; this.Description = role.Description; }
public RoleViewModel(ApplicationRole role) { this.RoleName = role.Name; this.Description = role.Description; }
public SelectRoleEditorViewModel(ApplicationRole role) { this.RoleName = role.Name; this.Description = role.Description; }