Ejemplo n.º 1
0
 public EditRoleViewModel(ApplicationRole role)
 {
     this.OriginalRoleName = role.Name;
     this.RoleName = role.Name;
     this.Description = role.Description;
 }
Ejemplo n.º 2
0
        public SelectRoleEditorViewModel(ApplicationRole role)
        {
            this.RoleName = role.Name;

            // Assign the new Descrption property:
            this.Description = role.Description;
        }