⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 surveyvote.cs

📁 动易SiteFactory&#8482 网上商店系统1.0源代码
💻 CS
字号:
namespace PowerEasy.Survey
{
    using PowerEasy.Common;
    using PowerEasy.IDal.Survey;
    using System;
    using System.Collections.Generic;

    public sealed class SurveyVote
    {
        private static readonly ISurveyVote dal = DataAccess.CreateSurveyVote();

        private SurveyVote()
        {
        }

        public static bool Add(int surveyId, int questionId, int optionCount)
        {
            return dal.Add(surveyId, questionId, optionCount);
        }

        public static bool Delete(int surveyId)
        {
            return dal.Delete(surveyId);
        }

        public static bool Delete(string surveyIdList)
        {
            bool flag = false;
            if (DataValidator.IsValidId(surveyIdList))
            {
                flag = dal.Delete(surveyIdList);
            }
            return flag;
        }

        public static bool Delete(int surveyId, int questionId)
        {
            return dal.Delete(surveyId, questionId);
        }

        public static bool Delete(int surveyId, string questionIdList)
        {
            bool flag = false;
            if (DataValidator.IsValidId(questionIdList))
            {
                flag = dal.Delete(surveyId, questionIdList);
            }
            return flag;
        }

        public static IList<int> GetQuestionVoteAmountList(int surveyId, int questionId)
        {
            return dal.GetQuestionVoteAmountList(surveyId, questionId);
        }

        public static bool Vote(int surveyId, int questionId, int optionId)
        {
            return dal.Vote(surveyId, questionId, optionId);
        }
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -