Пример #1
0
 public ActionResult AddBeverageInventory(BeverageInventoryViewModel model)
 {
     if (ModelState.IsValid)
     {
         BeverageInventoryRepository inventoryRepository = new BeverageInventoryRepository(new ApplicationDbContext());
         inventoryRepository.Create(model);
         return RedirectToAction("BeverageInventories");
     }
     return View(model);
 }
Пример #2
0
 public ActionResult AddBeverageInventory()
 {
     var model = new BeverageInventoryViewModel();
     return View(model);
 }