public async Task <IActionResult> AddBatchItem([FromBody] BatchItem batchItem) { _batchService.AddBatchItem(batchItem); var result = await _unitOfWork.SaveAsync(); if (result > 0) { return(Ok(result)); } return(StatusCode(500, "Unable to add new batch item.")); }