Exemplo n.º 1
0
        public ActionResult Index(string text)
        {
            var getText        = _demoServiceFacade.GetText(text);
            var settings       = _settingsServiceFacade.GetSettings();
            var samplesettings = _settingsServiceFacade.GetSampleSettings();

            if (getText != null)
            {
                var demo = new DemoViewModel {
                    Match = getText.Match, Settings = settings, SampleSettings = samplesettings
                };

                if (getText.EditFound)
                {
                    return(View(demo));
                }
            }
            else
            {
                return(View());
            }

            var demo1 = new DemoViewModel {
                Match = getText.Match, Settings = settings, SampleSettings = samplesettings
            };

            return(getText.TextToUseFound ? Index(demo1) : View());
        }
Exemplo n.º 2
0
        private ActionResult GetSpecificView(string passthrough)
        {
            ViewBag.Passthrough = passthrough;
            var settings = _settingsServiceFacade.GetSettings();
            var samples  = _settingsServiceFacade.GetSampleSettings();
            var tvm      = new TranslateViewModel {
                MatchSettings = settings, SampleSettings = samples
            };

            return(View("Index", tvm));
        }
        public ActionResult Index(string text)
        {
            var tvm = new TranslateViewModel
            {
                LastSearch     = text,
                Match          = _translateServiceFacade.GetText(text).Match,
                MatchSettings  = _settingsServiceFacade.GetSettings(),
                SampleSettings = _settingsServiceFacade.GetSampleSettings()
            };

            return(View(tvm));
        }
Exemplo n.º 4
0
        public ActionResult Index()
        {
            var settings       = _settingsServiceFacade.GetSettings();
            var samplesettings = _settingsServiceFacade.GetSampleSettings();

            var model = new SampleMatchViewModel
            {
                Settings           = settings,
                SampleSettings     = samplesettings,
                SampleMatchDisplay = _samplesService.GetHomePageView()
            };

            return(View(model));
        }