Exemplo n.º 1
0
 public static UserDto ToDto(this VmUserAddorEdit vm)
 {
     return(new UserDto
     {
         Id = vm.Id,
         Name = vm.Name,
         Password = vm.Password,
         DisplayName = vm.DisplayName,
         Email = vm.Email,
         Enabled = vm.Enabled,
         Version = vm.Version
     });
 }
Exemplo n.º 2
0
 public ActionResult Save(VmUserAddorEdit vm)
 {
     _userService.AddorUpdate(vm.ToDto());
     return AjaxOkResponse("保存成功!");
 }