Esempio n. 1
0
        public ActionResult Create(NewShopItemInputModel model)
        {
            if (!ModelState.IsValid)
            {
                return View(model);
            }

            Bus.Send(new NewShopItemCommand(
                "a",
                model.ItemId,
                model.Description
            ));

            return RedirectToAction("Index");
        }
Esempio n. 2
0
 public ActionResult Create()
 {
     var model = new NewShopItemInputModel();
     return View(model);
 }