public static List <UserByApp> GetAllUsers() { UserByApp wUserByApp; List <UserByApp> wUsersList = new List <UserByApp>(); try { foreach (MembershipUser wMembershipUser in Membership.GetAllUsers()) { wUserByApp = new UserByApp(wMembershipUser); wUsersList.Add(wUserByApp); } } catch (Exception ex) { FwkMessageView.Show(ex, "MembershipUserCollection", System.Windows.Forms.MessageBoxButtons.OK, Fwk.Bases.FrontEnd.Controls.MessageBoxIcon.Error); } return(wUsersList); }
public static List<UserByApp> GetAllUsers() { UserByApp wUserByApp; List<UserByApp> wUsersList = new List<UserByApp>(); try { foreach (MembershipUser wMembershipUser in Membership.GetAllUsers()) { wUserByApp = new UserByApp(wMembershipUser); wUsersList.Add(wUserByApp); } } catch (Exception ex) { FwkMessageView.Show(ex, "MembershipUserCollection", System.Windows.Forms.MessageBoxButtons.OK, Fwk.Bases.FrontEnd.Controls.MessageBoxIcon.Error); } return wUsersList; }