예제 #1
0
        public ActionResult ViewImage(int?id)
        {
            var            item = _posItemService.GetAll().FirstOrDefault(x => x.Id == id.Value);
            HotelMenuModel hmm  = new HotelMenuModel();

            hmm.MenuItem = item;
            return(View(hmm));
        }
        public ActionResult GetAnonymous(string name)
        {
            var availableItemsId = _posItemService.GetAll().Where(x => x.Remaining > 0 && x.DistributionPointId == DistributionPointId).Select(x => x.ItemId).ToList();

            var products = ProductsList.Where(x => x.StockItemName.Contains(name) && availableItemsId.Contains((int)x.Id)).ToList();

            IndexViewModel vm = new IndexViewModel();

            vm.productsList = products.OrderBy(x => x.StockItemName);

            return(PartialView("_Products", vm));
        }
예제 #3
0
        public ActionResult Index()
        {
            NonAccountViewModel model = new NonAccountViewModel();

            model.ItemList = _itemService.GetAll().Where(x => x.IsActive && x.Invinsible).ToList();
            model.GuestId  = 0;
            model.Quantity = 0;
            return(View(model));
        }