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); } }