Example #1
0
        public OperationResultVo GameUnlike(Guid currentUserId, Guid gameId)
        {
            try
            {
                gameDomainService.Unlike(currentUserId, gameId);

                unitOfWork.Commit();

                int newCount = gameDomainService.CountLikes(gameId);

                return(new OperationResultVo <int>(newCount));
            }
            catch (Exception ex)
            {
                return(new OperationResultVo(ex.Message));
            }
        }