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