Example #1
0
        public ActionResult Create()
        {
            PublishingCreateViewModel publishingViewModel = new PublishingCreateViewModel
            {
                Publishing = new PublishingViewModel(),

                AvailableTopics = mapper
                                  .Map <IEnumerable <TopicViewModel> >(publishingService.GetTopics()),

                AvailableJournalists = mapper
                                       .Map <IEnumerable <PublishingEmployeeViewModel> >(publishingService.GetJournalists()),

                AvailableEditors = mapper
                                   .Map <IEnumerable <PublishingEmployeeViewModel> >(publishingService.GetEditors())
            };

            return(View(publishingViewModel));
        }