public async Task <int> AddSpaceSession(DcSpaceSession spaceSession, int digitalWallId) { SpaceSessionDto newSession = SpaceSessionMapper.GetDtoSpaceSessionFromDcSpaceSession(spaceSession); newSession.DigitalWallId = digitalWallId; int id = await HubProxy.Invoke <int>("AddSpaceSession", newSession); return(id); }
private async void OnAddSession() { //A potential new space session returned from the form DcSpaceSession newSpaceSession = null; //Raise the new space session popup form... and if we get something from it... set it equal to this local var NewSpaceSessionPopupRequest.Raise(new NewSpaceSessionPopup { Title = "Add New Space Session" }, r => { newSpaceSession = r.NewSpaceSession; }); //TODO: If we don't have null... send it to the server for add if (newSpaceSession != null && newSpaceSession?.DigitalWall != null) { int newDigitalWallId = await this._signalrProxy.AddDigitalWall(newSpaceSession.DigitalWall); int newSpaceSessionId = await this._signalrProxy.AddSpaceSession(newSpaceSession, newDigitalWallId); } }
public SelectedSessionChangedEventArgs(DcSpaceSession newlySelectedSpaceSession) { this.NewlySelectedSpaceSession = newlySelectedSpaceSession; }
public static Common.Data.Models.SpaceSessionDto GetDtoSpaceSessionFromDcSpaceSession(DcSpaceSession DcSpaceSession) { return(new Common.Data.Models.SpaceSessionDto { Id = DcSpaceSession.SessionId, Name = DcSpaceSession.Name, DigitalWallId = DcSpaceSession.DigitalWall.WallId }); }
/// <summary> /// The constructor /// </summary> public NewSpaceSessionPopup() { this.NewSpaceSession = null; }