Ejemplo n.º 1
0
        /// <summary>
        /// 獲取投票信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public static VoteBL GetVote(string id)
        {
            VoteDA vda = new VoteDA();

            return(vda.TableToEntity <VoteBL>(vda.GetVote(id)).First());
        }
Ejemplo n.º 2
0
        public VoteCollection()
        {
            VoteDA vda = new VoteDA();

            Votes = vda.TableToEntity <VoteBL>(vda.GetVote());
        }