예제 #1
0
        public async Task <RoomTypeResponseModel> AddNewRoomTpyeAsync(RoomTypeRequestModel roomTypeRequestModel)
        {
            var roomType        = _mapper.Map <Roomtype>(roomTypeRequestModel);
            var createdRoomType = await _roomTypeRepository.AddRoomTypeAsync(roomType);

            return(_mapper.Map <RoomTypeResponseModel>(createdRoomType));
        }