Пример #1
0
        public void AddQuestionLike(int questionId)
        {
            var userRepo     = new UserRepository(_connectionString);
            var user         = userRepo.GetByEmail(User.Identity.Name);
            var questionRepo = new QuestionsRepository(_connectionString);

            questionRepo.AddQuestionLike(questionId, user.Id);
        }