public async Task <IActionResult> Remove(Guid codigo) { try { _service.Remove(codigo); return(Ok()); } catch (ArgumentException ex) { return(StatusCode(400, new Error(ex.Message))); } catch (Exception ex) { return(StatusCode(500, new Error(ex.Message))); } }