public override async Task <ShaRoleDto> UpdateAsync(ShaRoleDto input) { CheckUpdatePermission(); var role = await Repository.GetAsync(input.Id); ObjectMapper.Map(input, role); await _shaPermissionChecker.ClearPermissionsCacheAsync(); await Repository.UpdateAsync(role); await CurrentUnitOfWork.SaveChangesAsync(); return(MapToEntityDto(role)); }
public async Task ClearPermissionsCache() { await _permissionChecker.ClearPermissionsCacheAsync(); }