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