Пример #1
0
 public ActionResult Index(MenuRecipeViewModel MRViewModel, string value)
 {
     MRViewModel = MenuRecipeManager.SearchMenuRecipe(value);
     MRViewModel.MenuItemList = MenuRecipeManager.SearchMenuItem("ALL");
     MRViewModel.RawItemList  = RawItemMasterManager.GetRawItems("ALL");
     MRViewModel.HasSearched  = true;
     return(View(MRViewModel));
 }
Пример #2
0
 public ItemGroupViewModel()
 {
     ItemList     = new List <Item>();
     StoreList    = new List <Item>();
     AllStoreList = new StoreProfileManager().SearchStores("ALL");
     MenuItemList = MenuItemMasterManager.SearchMenuItems("ALL");
     RawItemList  = RawItemMasterManager.GetRawItems("ALL");
     RecipeList   = MenuRecipeManager.SearchMenuItem("ALL");
     GroupList    = new List <ItemGroupViewModel>();
 }
Пример #3
0
        // GET: MenuRecipe
        public ActionResult Index(string id)
        {
            UserAccessSession UASession = (UserAccessSession)Session["UserAccess"];

            if (UASession == null || !UASession.MER)
            {
                return(RedirectToAction("Login", "Account"));
            }
            // Set NavBar Links accordingly
            Session["CurrentPage"] = new CurrentPageSession("MER", "HOME", "LOG");

            // SearchItemSelected is assigned value at DisplaySearchResult
            MenuRecipeViewModel MRViewModel = new MenuRecipeViewModel();

            if (id != null)
            {
                MRViewModel             = MenuRecipeManager.SearchMenuRecipe(id);
                MRViewModel.HasSearched = true;
            }
            MRViewModel.MenuItemList = MenuRecipeManager.SearchMenuItem("ALL");
            MRViewModel.RawItemList  = RawItemMasterManager.GetRawItems("ALL");
            return(View(MRViewModel));
        }