예제 #1
0
 public IActionResult AddTrailtoDb(AllTrails trails)
 {
     if (ModelState.IsValid)
     {
         _dapperTrail.AddTrails(trails);
         return(RedirectToAction("Index"));
     }
     return(View("AddTrail"));
 }