Exemplo n.º 1
0
        public async Task <ActionResult> Create(CreditCardRequestModel model)
        {
            if (!this.ModelState.IsValid)
            {
                return(View(model));
            }

            var res = await _creditCardService.Create(model, IdentityHelper.CurrentUserId);

            if (res)
            {
                return(RedirectToAction("Index", "CreditCard"));
            }
            return(View(model));
        }