コード例 #1
0
        public UserModel GetUser(string usernameOrEmail)
        {
            var user = userWarehouse.GetUserByName(usernameOrEmail);
            user = user ?? userWarehouse.GetUserByEmail(usernameOrEmail);
            var adapter = new UserAdapter(user);

            return adapter.UserModel;
        }
コード例 #2
0
 public UserModel GetByName(string username)
 {
     var adapter = new UserAdapter(userWarehouse.GetUserByName(username));
     return adapter.UserModel;
 }
コード例 #3
0
 public UserModel GetUser(int id)
 {
     var adapter = new UserAdapter(userWarehouse.GetUser(id));
     return adapter.UserModel;
 }
コード例 #4
0
 public UserModel GetByEmail(string email)
 {
     var adapter = new UserAdapter(userWarehouse.GetUserByEmail(email));
     return adapter.UserModel;
 }