Ejemplo n.º 1
0
        public override ActionResult Index()
        {
            CardDto = null;
            var model = new CardEntryModel();

            return(View(model));
        }
Ejemplo n.º 2
0
 public ActionResult Index(CardEntryModel model)
 {
     if (ModelState.IsValid)
     {
         ExecutionResult <CardDto> result = CommandBus.ExecuteCommand(new CardRequest()
         {
             Value = model.Number
         }) as ExecutionResult <CardDto>;
         if (result != null && result.Success && result.TypedResult != null)
         {
             CardDto      = result.TypedResult;
             IsPinChecked = false;
             return(RedirectToAction("Menu"));
         }
     }
     return(View(model));
 }