public async Task <IActionResult> Create(Partner partner) { if (ModelState.IsValid) { var currentUser = await _userHelper.GetUserByEmailAsync(User.Identity.Name); var message = await _partnerRepository.CreatePartnerAsync(partner, currentUser); ViewData["Message"] = message; return(View(partner)); } return(View(partner)); }