ildar-shaymukhametov_grandnode-refactorings/Grand.Web/Models/Polls/PollModel.cs
using Grand.Core.Models;
using System;
using System.Collections.Generic;

namespace Grand.Web.Models.Polls
{
    public partial class PollModel : BaseEntityModel
    {
        public PollModel()
        {
            Answers = new List<PollAnswerModel>();
        }

        public string Name { get; set; }

        public bool AlreadyVoted { get; set; }

        public int TotalVotes { get; set; }
        
        public IList<PollAnswerModel> Answers { get; set; }

    }

    public partial class PollAnswerModel : BaseEntityModel
    {
        public string Name { get; set; }
        public string PollId { get; set; }
        public int NumberOfVotes { get; set; }

        public double PercentOfTotalVotes { get; set; }
    }
}