public IActionResult Delete(int?id) { if (id != null) { _tripService.DeleteById(id); _commitProvider.Save(); return(RedirectToAction("Index")); } return(NotFound()); }