Example #1
0
        public async Task <int> AddCar(int floorId)
        {
            try
            {
                await _slotRepository.AddCarAsync(floorId);

                var result = await _floorRepository.AddSlotByFloorIdAsync(floorId);

                return(result);
            }
            catch (Exception ex)
            {
                _logger.LogError("Error on AddCar.", ex);
                return(0);
            }
        }