public void AddRoomSelectionEvent() { RoomSelectionEventDTO roomSelectionEventDTO = new RoomSelectionEventDTO(MainWindow._currentUsername, (int)Id); MapObjectController mapObjectController = new MapObjectController(new MapObjectServices(_fileRepository)); MapObject building = mapObjectController.GetMapObjectById(BuildingId); ((Building)building.MapObjectEntity).AddBuildingSelectionEvent(); EventSourcingService eventSourcingService = new EventSourcingService(); eventSourcingService.AddRoomSelectionEvent(roomSelectionEventDTO); }
public void AddRoomSelectionEvent(RoomSelectionEventDTO roomSelectionEventDTO) { AddHTTPPostRequest("eventSourcing/roomSelection", roomSelectionEventDTO); }
public ActionResult AddRoomSelectionEvent(RoomSelectionEventDTO roomSelectionEventDTO) { return(RequestAdapter.SendRequestWithBody(_serviceSettings.EventSourcingServiceUrl, "/api/map/roomSelection", roomSelectionEventDTO)); }