Пример #1
0
 public void TestMethod1()
 {
     var userServiceClient = new UserServiceClient();
     var user = new UserDto()
     {
         UserName = "******",
         NickName = "坏坏男孩",
         RealName = "吴丹",
         PhoneNo = "18916765826",
         Email = "*****@*****.**",
         PassWord = "******",
         RegisterTime = DateTime.Now,
         LastLogonTime = DateTime.Now
     };
     var result = userServiceClient.CreateUser(user);
 }
Пример #2
0
 public bool UpdateUser(UserDto userDto)
 {
     userRepository.Update(userDto.ConvertToUser());
     return base.Context.Commit();
 }
Пример #3
0
 public bool CreateUser(UserDto userDto)
 {
     userRepository.Create(userDto.ConvertToUser());
     return userRepository.Context.Commit();
     return Context.Commit();
 }
Пример #4
0
 public bool UpdateUser(UserDto userDto)
 {
     return userServiceImpl.UpdateUser(userDto);
 }
Пример #5
0
 public bool CreateUser(UserDto userDto)
 {
     return userServiceImpl.CreateUser(userDto);
 }
 public Boolean CreateUser(UserDto userDto) {
     return userService.CreateUser(userDto);
 }