Exemple #1
0
        public async Task <IResultModel> AddLikeCount(int id)
        {
            await _markRepository.AddAsync(new MarkEntity
            {
                Type       = MarkType.QuestionLike,
                MemberId   = 0,
                RelationId = id
                             //MemberId = _dbContext.LoginInfo.AccountId
            });

            return(ResultModel.Result(await _repository.AddLikeCount(id)));
        }