Пример #1
0
        public ActionResult GetContext(string urlSite)
        {
            if (urlSite == null)
            {
                CreateTopicViewModel model = new CreateTopicViewModel()
                {
                    Topic      = new Topic(),
                    MasterPage = UpdateMasterPageData()
                };
                return(View("~/Views/Admin/CreateTopic.cshtml", model));
            }
            CreateTopicViewModel modelDone = new CreateTopicViewModel()
            {
                Topic = new Topic()
                {
                    ContextTopic = topicService.GetContextFromOtherSite(urlSite)
                },
                MasterPage = UpdateMasterPageData()
            };

            return(View("~/Views/Admin/CreateTopic.cshtml", modelDone));
        }