Example #1
0
        public Lite <DashboardEntity>?Home()
        {
            if (TypeAuthLogic.GetAllowed(typeof(DashboardEntity)).MaxUI() == TypeAllowedBasic.None)
            {
                return(null);
            }

            var result = DashboardLogic.GetHomePageDashboard();

            return(result?.ToLite());
        }
Example #2
0
        public ActionResult Index()
        {
            if (UserEntity.Current == null)
            {
                return(RedirectToAction("PublicCatalog"));
            }

            var panel = DashboardLogic.GetHomePageDashboard();

            if (panel != null)
            {
                return(View(DashboardClient.ViewPrefix.FormatWith("Dashboard"), panel));
            }

            return(View());
        }
Example #3
0
    public Lite <DashboardEntity>?Home()
    {
        var result = DashboardLogic.GetHomePageDashboard();

        return(result?.ToLite());
    }