ViewModel for the Survey class
Example #1
0
        public static SurveyViewModel Create(IRepository repository)
        {
            Check.Require(repository != null, "Repository must be supplied");

            var viewModel = new SurveyViewModel {Survey = new Survey()};

            return viewModel;
        }