Ejemplo n.º 1
0
        public async Task <int> AddSpaceSession(UcSpaceSession spaceSession, int digitalWallId)
        {
            SpaceSessionDto newSession = SpaceSessionMapper.GetDtoSpaceSessionFromUcSpaceSession(spaceSession);

            newSession.DigitalWallId = digitalWallId;
            int id = await HubProxy.Invoke <int>("AddSpaceSession", newSession);

            return(id);
        }
Ejemplo n.º 2
0
 public static SpaceSessionDto GetDtoSpaceSessionFromUcSpaceSession(UcSpaceSession UcSpaceSession)
 {
     return(new SpaceSessionDto
     {
         Id = UcSpaceSession.SessionId,
         Name = UcSpaceSession.Name,
         DigitalWallId = UcSpaceSession.DigitalWall.WallId
     });
 }