Пример #1
0
        public PantryDto AddPantryToOffice(PantryDto pantryDto)
        {
            var pantry = Mapper.Map <PantryDto, Pantry>(pantryDto);

            var returnPantry = Mapper.Map <Pantry, PantryDto>(_pantryRepository.AddPantryToOffice(pantry));

            _pantryStockRepository.ReplenishStock(pantryDto.OfficeId);

            return(returnPantry);
        }
Пример #2
0
 public void AddInitialPantryStocks(int officeId)
 {
     _pantryStockRepository.ReplenishStock(officeId);
 }