public static DcSpaceSession GetDcSpaceSessionFromDcDigitalWallAndDtoSpaceSession(DcDigitalWall appropriateDigitalWall, Common.Data.Models.SpaceSessionDto dtoSpaceSession) { return(new DcSpaceSession(dtoSpaceSession.Name, appropriateDigitalWall, dtoSpaceSession.Id)); }
public static Common.Data.Models.DigitalWallDto GetDtoDigitalWallFromDcDigitalWall(DcDigitalWall DcDigitalWall) { return(new Common.Data.Models.DigitalWallDto { Id = DcDigitalWall.WallId, Name = DcDigitalWall.Name, Width = DcDigitalWall.Width, Height = DcDigitalWall.Height }); }
public async Task <int> AddDigitalWall(DcDigitalWall digitalWall) { int id = await HubProxy.Invoke <int>("AddDigitalWall", DigitalWallMapper.GetDtoDigitalWallFromDcDigitalWall(digitalWall)); return(id); }