public async Task <ActionResult> Post([FromBody] InProductionLineDTO inProductionLineDto) { try { var productionLine = await _productionLineService.CreateProductionLineAsync(inProductionLineDto); return(Created(nameof(Post), productionLine)); } catch (Exception e) { return(StatusCode(StatusCodes.Status500InternalServerError, e.Message)); } }