public async Task <IActionResult> Invite([FromForm] InviteUserDto dto) { if (ModelState.IsValid) { await _votingService.InviteAsync(dto); return(RedirectToAction("Get", new { id = dto.VotingId })); } return(View(dto)); }