public async Task <IActionResult> Update([Required] string id, [FromBody] HardwareDto dto)
        {
            if (string.IsNullOrEmpty(id) ||
                string.IsNullOrWhiteSpace(id) ||
                dto == null ||
                dto.Id != id ||
                !ModelState.IsValid)
            {
                return(BadRequest(new { message = "The request is invalid", requestId = id, request = dto }));
            }

            var existsDto = await service.GetByIdAsync(id);

            if (existsDto == null)
            {
                return(NotFound(new { message = "The hardware was not found", requestId = id }));
            }

            await service.UpdateAsync(id, dto);

            return(NoContent());
        }