Exemplo n.º 1
0
        public async Task <IActionResult> InsertCoffee(GenerateCoffeeViewModel coffee)
        {
            var model = new CoffeeDBO();

            model.Name        = coffee.Name;
            model.Description = coffee.Description;
            model.Price       = coffee.Price;

            await _coffeeRepository.InsertIntoCoffee(model);

            return(RedirectToAction("CoffeesMenu"));
        }
Exemplo n.º 2
0
        public IActionResult GenerateCoffee()
        {
            var model = new GenerateCoffeeViewModel();

            return(View(model));
        }