public async Task <int> ModifySourceInstance(UcSourceInstance sourceInstance) { var sourceInstanceDto = SourceInstanceMapper.GetDtoSourceInstanceFromUcSourceInstance(sourceInstance); int id = await HubProxy.Invoke <int>("ModifySourceInstance", sourceInstanceDto); return(id); }
public static SourceInstanceDto GetDtoSourceInstanceFromUcSourceInstance(UcSourceInstance UcSourceInstance) { return(new SourceInstanceDto { Id = UcSourceInstance.SourceInstanceId, SourceId = UcSourceInstance.SourceId, WallId = UcSourceInstance.WallId, X = UcSourceInstance.X, Y = UcSourceInstance.Y, Width = UcSourceInstance.Width, Height = UcSourceInstance.Height }); }
public async Task <int> AddSourceInstance(UcSourceInstance sourceInstance) { int id = await HubProxy.Invoke <int>("AddSourceInstance", SourceInstanceMapper.GetDtoSourceInstanceFromUcSourceInstance(sourceInstance)); return(id); }