Ejemplo n.º 1
0
        public async Task <IActionResult> Get(int id)
        {
            _diagnosticContext.SetWorkOrderId(id);
            try
            {
                WorkOrderResponse workOrderResponse = await _getWorkOrderUseCase.Execute(id);

                return(Ok(workOrderResponse));
            }
            catch (ResourceNotFoundException ex)
            {
                return(NotFound(ex.Message));
            }
        }