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); }
public void AddInitialPantryStocks(int officeId) { _pantryStockRepository.ReplenishStock(officeId); }