|  |  | 
 |  |  |             CheckExtensions.IfTrueThrowUserFriendlyException(result != Constant.SUCCESS, | 
 |  |  |                                                              CustomeErrorMessage.ResetPasswordFail); | 
 |  |  |         } | 
 |  |  |  | 
 |  |  |         public async Task<int> DeleteBackClientUser(Guid id) | 
 |  |  |         { | 
 |  |  |             var entity = await _userRepository.FirstOrDefaultAsync(s => s.Id == id && s.ClientId == Constant.ClientType.Back); | 
 |  |  | 
 |  |  |  | 
 |  |  |         public async Task<Guid> CreateRole(CreateOrUpdateRoleInput input) | 
 |  |  |         { | 
 |  |  |             var entity = ObjectMapper.Map<CreateOrUpdateRoleInput, Role>(input); | 
 |  |  |             return await _roleRepository.InsertAndGetIdAsync(entity); | 
 |  |  |             Role role = new Role() | 
 |  |  |             { | 
 |  |  |                 Id = input.Id, | 
 |  |  |                 Name = input.Name, | 
 |  |  |                 Sequence = input.Sequence, | 
 |  |  |                 DepartmentId = input.DepartmentId, | 
 |  |  |                 DataRange = input.DataRange, | 
 |  |  |                 Remark = input.Remark | 
 |  |  |             }; | 
 |  |  |             return await _roleRepository.InsertAndGetIdAsync(role); | 
 |  |  |         } | 
 |  |  |  | 
 |  |  |         public async Task<PageOutput<RoleInfo>> GetRoles(GetRolesInput input) |