public IActionResult CreateRequest(Request request) { if (ModelState.IsValid) { requestRepo.Save(request); return(RedirectToAction(nameof(Search))); } return(View()); }