public IObservable <IWorkspace> Create(IWorkspace workspace) { var dto = new UserApi.WorkspaceParameters { Name = workspace.Name, InitialPricingPlan = PricingPlans.Free }; var json = serializer.Serialize(dto, SerializationReason.Post); return(SendRequest <Workspace>(endPoints.Post, AuthHeader, json)); }
public async Task <IWorkspace> Create(IWorkspace workspace) { var dto = new UserApi.WorkspaceParameters { Name = workspace.Name, InitialPricingPlan = PricingPlans.Free }; var json = serializer.Serialize(dto, SerializationReason.Post); var response = await SendRequest <Workspace>(endPoints.Post, AuthHeader, json); return(response); }