Example #1
0
        public async Task <bool> LogoutAsync(LogoutRequest model)
        {
            var user = await userRepository.GetByUserNameAsync(model.OwnerId, model.Username);

            var userDto = userToUserDtoHydrator.Hydrate(user);

            await cachingService.DestroyUserSession(user.OwnerId, userDto.UserName);

            return(true);
        }