Пример #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());
 }