示例#1
0
        public void AddBatch(AddBatchDTO batchDTO)
        {
            var batch = batchDTO.ToBatch();

            _batchRepository.AddBatch(batch);

            _unitOfWork.CommitChanges();
            Logger.Info("Batch added {@batch}", batch);
        }
示例#2
0
 public IActionResult AddBatch(AddBatchDTO batchDTO)
 {
     _storageService.AddBatch(batchDTO);
     return(Ok());
 }