public ProposalViewModel MapFromModel(Proposal proposal)
 {
     var vm = new ProposalViewModel
     {
         Index = proposal.Index,
         Recipient = proposal.Recipient,
         Amount = ConvertToUnit(proposal.Amount, EthDecimals),
         Creator = proposal.Creator,
         Description = proposal.Description,
         Nay = ConvertToUnit(proposal.Nay, DaoDecimals),
         NewCurator = proposal.NewCurator,
         Open = proposal.Open,
         ProposalDeposit = ConvertToUnit(proposal.ProposalDeposit, EthDecimals),
         ProposalPassed = proposal.ProposalPassed,
         Yea = ConvertToUnit(proposal.Yea, DaoDecimals),
         VotingDeadline = new DateTime(1970, 1, 1, 0, 0, 0, 0).AddSeconds((double)proposal.VotingDeadline)
     };
     return vm;
 }
        public ProposalViewModel MapFromModel(Proposal proposal)
        {
            var vm = new ProposalViewModel
            {
                Index           = proposal.Index,
                Recipient       = proposal.Recipient,
                Amount          = ConvertToUnit(proposal.Amount, EthDecimals),
                Creator         = proposal.Creator,
                Description     = proposal.Description,
                Nay             = ConvertToUnit(proposal.Nay, DaoDecimals),
                NewCurator      = proposal.NewCurator,
                Open            = proposal.Open,
                ProposalDeposit = ConvertToUnit(proposal.ProposalDeposit, EthDecimals),
                ProposalPassed  = proposal.ProposalPassed,
                Yea             = ConvertToUnit(proposal.Yea, DaoDecimals),
                VotingDeadline  = new DateTime(1970, 1, 1, 0, 0, 0, 0).AddSeconds((double)proposal.VotingDeadline)
            };

            return(vm);
        }