public void AddBatch(AddBatchDTO batchDTO) { var batch = batchDTO.ToBatch(); _batchRepository.AddBatch(batch); _unitOfWork.CommitChanges(); Logger.Info("Batch added {@batch}", batch); }
public IActionResult AddBatch(AddBatchDTO batchDTO) { _storageService.AddBatch(batchDTO); return(Ok()); }