Ejemplo n.º 1
0
        public ActionResult Index()
        {
            var sessionId = this.Session["SessionID"].ToString();
            IUserSessionRepository userSessionRepository = RepositoryClassFactory.GetInstance().GetUserSessionRepository();
            UserSession            userSession           = userSessionRepository.FindByID(sessionId);

            string currentLanguage = Session["AdminCulture"] != null ? Session["AdminCulture"].ToString() : "EN";

            if (Session["AdminCulture"] == null)
            {
                Session["AdminCulture"] = currentLanguage;
            }

            FindAllItemReponse <MenuModel> menuReponse = _menuCategoryService.FindAllMenus(currentLanguage);

            return(View(menuReponse.Items));
        }
Ejemplo n.º 2
0
        public IList <MenuModel> GetCategoryMenu()
        {
            FindAllItemReponse <MenuModel> menuReponse = _menuCategoryService.FindAllMenus();

            return(menuReponse.Items);
        }