public async Task <IActionResult> Create([Bind("Id,PTCC,CvcCode")] CreditCard creditCard) { if (ModelState.IsValid) { //creditCard.ECC = _cryptoService.EncryptContent(creditCard.PTCC); //creditCard.SECC = _cryptoService.SignContent(Convert.FromBase64String(creditCard.ECC)); var user = await _userManager.GetUserAsync(HttpContext.User); await _creditCardService.CreateCreditCardAsync(creditCard.PTCC, creditCard.CvcCode, user.Id); return(RedirectToAction(nameof(Index))); } return(View(creditCard)); }