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