示例#1
0
        public UserModel GetUserDetails(int userId)
        {
            UserRepository userRepository = new UserRepository();
            UserModel userModel = new UserModel();

            UserDTO userEntity = userRepository.GetUserDetails(userId);
            AutoMapper.Mapper.Map(userEntity, userModel);
            return userModel;
        }