Пример #1
0
        // GET: Master
        public ActionResult Employee()
        {
            COW_MenuInquiryViewModel viewModel = new COW_MenuInquiryViewModel
            {
            };

            return(View(viewModel));
        }
Пример #2
0
        public ViewResult MainCategory()
        {
            COW_MenuInquiryViewModel viewModel = new COW_MenuInquiryViewModel
            {
                COW_MenuListByJsonInquiryMainMenu = repository.COW_MenuListByJsonInquiry().ToList()
            };

            return(View(viewModel));
        }
Пример #3
0
        // GET: Menu
        public ActionResult Index()
        {
            COW_MenuInquiryViewModel viewModel = new COW_MenuInquiryViewModel
            {
                //COW_MenuInquiry = repository.COW_MenuInquiry("Menu")
            };

            return(View(viewModel));
        }
Пример #4
0
        public ViewResult MenuList()
        {
            COW_MenuInquiryViewModel viewModel = new COW_MenuInquiryViewModel
            {
                COW_MenuInquiry = repository.COW_MenuInquiry("Menu")
            };

            return(View(viewModel));
        }
Пример #5
0
        public PartialViewResult MiddleCategory(string category)
        {
            COW_MenuInquiryViewModel viewModel = new COW_MenuInquiryViewModel
            {
                COW_MenuListByJsonInquiryMainMenu = repository.COW_MenuListByJsonInquiry().ToList()
                ,
                COW_MenuListByJsonInquirySubMenu = repository.COW_MenuListByJsonInquiry().Where(s => s.MenuCode == category).ToList()
            };

            return(PartialView("_MiddleCategory", viewModel));
        }