Exemplo n.º 1
0
        public async Task <IActionResult> DeleteTravel(int TravelId)
        {
            try
            {
                var response = await _service.DeleteTravel(TravelId);

                if (response != null)
                {
                    return(Ok(response));
                }
                return(StatusCode(StatusCodes.Status204NoContent));
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }