public async Task <ActionResult <ProductionLineDTO> > UpdateProductionLine(Guid id, [FromBody] ProductionLineDTO item)
        {
            try
            {
                if (!ModelState.IsValid)
                {
                    return(BadRequest("Invalid model object"));
                }

                await _serviceProductionLine.UpdateProductionLine(id, item);

                ProductionLine productionLine = await _serviceProductionLine.GetProductionLineById(id);

                return(productionLine.toDTO());
            }
            catch (KeyNotFoundException ex)
            {
                return(NotFound(ex.Message));
            }
            catch (Exception exception)
            {
                return(BadRequest(exception.Message));
            }
        }