コード例 #1
0
        public UserModel ValidateUser(string userName, string password)
        {
            UserRepository userRepository = new UserRepository();
               UserModel userModel = new UserModel();

               UserDTO userEntity = userRepository.ValidateUser(userName, password);
               AutoMapper.Mapper.Map(userEntity, userModel);

               return userModel;
        }