Esempio n. 1
0
        public async Task <IActionResult> DeleteTripById(int id)
        {
            try
            {
                var tripInDb = await _tripService.DeleteTripById(id);

                return(Ok());
            }
            catch (WebException)
            {
                return(BadRequest());
            }
        }