public static CreateEditPollViewModel CreateForNewPoll(long ownerId)
        {
            CreateEditPollViewModel editPollViewModel = new CreateEditPollViewModel();

            editPollViewModel._mode    = CreateEditPollViewModel.Mode.Create;
            editPollViewModel._ownerId = ownerId;
            editPollViewModel.InitializeFromPoll();
            return(editPollViewModel);
        }
        public static CreateEditPollViewModel CreateForEditPoll(long ownerId, long pollId, Poll poll = null)
        {
            CreateEditPollViewModel editPollViewModel = new CreateEditPollViewModel();

            editPollViewModel._mode        = CreateEditPollViewModel.Mode.Edit;
            editPollViewModel._ownerId     = ownerId;
            editPollViewModel._pollId      = pollId;
            editPollViewModel._initialPoll = poll;
            if (poll == null)
            {
                editPollViewModel.LoadPoll();
            }
            else
            {
                editPollViewModel.InitializeFromPoll();
            }
            return(editPollViewModel);
        }