Exemple #1
0
 private void DeleteRouteButton_Click(object sender, RoutedEventArgs e)
 {
     if (ListBoxRoutesPeople.SelectedItem != null)
     {
         dalro.DeleteRoute((Route)ListBoxRoutesPeople.SelectedItem);
     }
 }
 public async Task <IActionResult> DeleteRoute(int routeID)
 {
     try
     {
         return(Ok(await _routeRepository.DeleteRoute(routeID)));
     }
     catch (Exception ex)
     {
         return(BadRequest(ex));
     }
 }