public async Task <IActionResult> Create([Bind("TasterId,TasterName,TasterEmail,TasterSecondName")] Taster taster, string password) { if (ModelState.IsValid) { var result = await _userAccessService.RegisterUserFromForm(taster.TasterEmail, password); if (!result) { return(RedirectToAction("ErrorPage", "Home", new { message = "Something going wrong. Please check that user can exist already." })); } _context.Add(taster); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(taster)); }