public async Task <IActionResult> Delete(int id) { try { await _productionLineService.DeleteProductionLineAsync(id); return(NoContent()); } catch (Exception e) { return(StatusCode(StatusCodes.Status500InternalServerError, e.Message)); } }
public async Task <IActionResult> Delete(int id) { try { await _productionLineService.DeleteProductionLineAsync(id); return(NoContent()); } catch (Exception e) { return(StatusCode(StatusCodes.Status500InternalServerError, e.Message)); } }