예제 #1
0
        public async Task UpdateFloor(UpdateFloorDTO input)
        {
            var floor = _mapper.Map <Floor>(input);

            if (Guid.Empty != input.BuildingId)
            {
                floor.Building = await _buildingRepository.GetById(input.BuildingId);
            }
            await _repository.Update(floor.Id, floor);
        }
예제 #2
0
        public async Task <IActionResult> UpdateFloor(UpdateFloorDTO input)
        {
            try
            {
                await _floorService.UpdateFloor(input);

                return(Ok());
            }
            catch (Exception)
            {
                throw;
            }
        }