Esempio n. 1
0
        public ActionResult New()
        {
            PlaneViewModel vmPlane = new PlaneViewModel();

            _PreferenceRepository.LoadBasePreferences(vmPlane);
            return(View(vmPlane));
        }
Esempio n. 2
0
        public ActionResult New()
        {
            ScriptViewModel vmPlane = new ScriptViewModel();

            vmPlane.AllActions = _ActionRepository.GetAll(true);
            _PreferenceRepository.LoadBasePreferences(vmPlane);
            return(View(vmPlane));
        }
Esempio n. 3
0
        public ActionResult Index()
        {
            try
            {
                _LoggingService.Write("HomeController (Index) page access", true);
                HomeViewModel vmHome = new HomeViewModel();
                _PreferenceRepository.LoadBasePreferences(vmHome);
                vmHome.ScriptListViewModel.List = _ScriptRepository.GetAll();
                vmHome.PlaneListViewModel.List  = _PlaneRepository.GetAll();

                Execution currentExecution = _ExecutionRepository.GetCurrent();
                vmHome.ExecutionViewModel.Current = currentExecution;
                vmHome.ExecutionViewModel.List    = _PlaneRepository.GetPlaneList(currentExecution.ExecutionPlane.ToList());

                return(View(vmHome));
            }
            catch (Exception ex)
            {
                _LoggingService.WriteWithInner(ex, true, "HomeController(Index) error: ");
                return(new HttpNotFoundResult());
            }
        }