コード例 #1
0
        public PartialViewResult NavBar()
        {
            BaseLabelsViewModel model = new BaseLabelsViewModel
            {
                Labels = _labelCollectionRetriever.Get("NavBar")
            };

            return(PartialView("_NavBar", model));
        }
コード例 #2
0
        public ViewResult Error()
        {
            var model = new DashboardErrorViewModel
            {
                Labels = _labelCollectionRetriever.Get("DashboardErrorPage")
            };

            return(View("Error", model));
        }
コード例 #3
0
        public ViewResult Index()
        {
            LoginViewModel model = new LoginViewModel
            {
                Labels = _labelCollectionRetriever.Get("LoginPage")
            };

            return(View("index", model));
        }
コード例 #4
0
        public ViewResult Index()
        {
            const string collectionName = "Home Page";

            LabelCollection labelCollection = _labelCollectionRetriever.Get(collectionName);

            return(View(new HomeViewModel {
                Labels = labelCollection
            }));
        }
コード例 #5
0
        public DashboardViewModel Get()
        {
            var organisation = _organisationService.Get();

            var applications = _applicationService.GetByOrganisationId();

            var labels = _labelCollectionRetriever.Get("DashboardPage");

            return(new DashboardViewModel
            {
                Organisation = organisation,
                Applications = applications,
                Labels = labels
            });
        }
コード例 #6
0
 private LabelCollection GetLabelCollection()
 {
     return(_labelCollectionRetriever.Get("ApplicationPage"));
 }