public async Task<IActionResult> Add(AddPrViewModel addPrViewModel) { if (!ModelState.IsValid) { return View("Add", addPrViewModel); } addPrViewModel.UserName = _contextAccessor.HttpContext.User .Claims.FirstOrDefault(c => c.Type == GitHubUsernameClaimType)?.Value; await _tableService.AddPrAsync(addPrViewModel.UserName, addPrViewModel.Owner, addPrViewModel.Repository, new PullRequest(addPrViewModel.PrNumber, addPrViewModel.PrUrl)); return RedirectToAction("Index"); }