/// <summary> /// Constructor for the class SecurityUserRolesViewModel /// </summary> public SecurityUserRolesViewModel(string username) { try { _securityUserRolesDet = new SecurityUserRolesDet(); _sec_Roles_Master_List = _securityUserRolesDet.GetAvailableRoles(username); _sec_User_Roles_List = _securityUserRolesDet.GetAvailableRolesForTheUser(username); _userName = username; } catch (Exception ex) { throw throw ex; } }
/// <summary> /// Constructor for the class SecurityUserRolesViewModel /// </summary> public SecurityUserRolesViewModel(UserInformation userInformation, string username) { try { _securityUserRolesDet = new SecurityUserRolesDet(userInformation); _sec_Roles_Master_List = _securityUserRolesDet.GetAvailableRoles(username); _sec_User_Roles_List = _securityUserRolesDet.GetAvailableRolesForTheUser(username); _userName = username; EnableOrDisableSelect(); } catch (Exception ex) { throw ex.LogException(); } }