public async Task <IActionResult> InfectionReport([Bind("Id,DiagnosisDate")] InfectionReport infectionReport) { var currentUser = await _userInfoManager.FindUser(User); try { await _infectionManager.NewInfectionReport(currentUser, infectionReport); } catch (ModelException ex) { ex.UpdateModelState(ModelState); return(View(infectionReport)); } return(RedirectToAction(nameof(Index))); }