Beispiel #1
0
 /// <summary>
 /// Return List of Users from database
 /// </summary>
 /// <returns>List of User objects</returns>
 public static List<AppUser> UserList()
 {
     SecurityDO sDO = new SecurityDO();
     return BusinessDataBinder.BindData<List<AppUser>>(sDO.GetUser(new object[] { DBNull.Value }));
 }
Beispiel #2
0
 /// <summary>
 /// Get User
 /// </summary>
 /// <param name="userID">ID of user</param>
 /// <returns>User object</returns>
 public static AppUser GetUser(int userID)
 {
     SecurityDO sDO = new SecurityDO();
     return BusinessDataBinder.BindData<AppUser>(sDO.GetUser(new object[] { userID }));
 }