コード例 #1
0
 public IActionResult Add(Application application)
 {
     if (ModelState.IsValid)
     {
         _applicationService.AddAppliction(application);
         ApplicationViewModel model = _applicationService.getLastFiveElement();
         return(PartialView("/Views/Home/_ListApplication.cshtml", model));
     }
     return(RedirectToAction("Index", "Home"));
 }