示例#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
        // 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));
        }