public async Task <IActionResult> Index(string Id, string returnUrl) { if (string.IsNullOrEmpty(Id)) { Id = _userManager.GetUserId(User); } var pacient = await _pacientService.GetPacientByIdAsync(Id, true, true, false); var vm = new CardViewModel { Pacient = pacient, Card = await _cardService.GetCardByIdAsync(Id), ReturnUrl = returnUrl }; return(View(vm)); }