예제 #1
0
파일: AppUser.cs 프로젝트: JoelKDennis/N22
 /// <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 }));
 }
예제 #2
0
파일: AppUser.cs 프로젝트: JoelKDennis/N22
 /// <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 }));
 }