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

            var result = DashboardLogic.GetHomePageDashboard();

            return(result?.ToLite());
        }
Ejemplo n.º 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());
        }
Ejemplo n.º 3
0
    public Lite <DashboardEntity>?Home()
    {
        var result = DashboardLogic.GetHomePageDashboard();

        return(result?.ToLite());
    }