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