Esempio n. 1
0
        public static LandingViewModelBase Default(AppSettings settings, string title = "")
        {
            var model = new LandingViewModelBase(title)
            {
                Settings = settings, Title = title
            };

            if (title.IsNullOrWhitespace())
            {
                model.Title = settings?.General.ApplicationName;
            }
            return(model);
        }
Esempio n. 2
0
        public static LandingViewModelBase Default(string title = "")
        {
            var model = new LandingViewModelBase(title);

            return(model);
        }
Esempio n. 3
0
        public IActionResult Landing()
        {
            var model = LandingViewModelBase.Default(Settings);

            return(View(model));
        }