/// <summary> /// Send a request to create a resource with the api /// </summary> /// <param name="api">Api object to use</param> /// <returns>a request ID</returns> public virtual long Create(API_Proxy_BackendConsole api) { return(api.Post <long>(ApiPath, JsonConvert.SerializeObject(this))); }
/// <summary> /// Create a new pool with info setted in this object. /// </summary> /// <param name="api">Api object to use.</param> public void Create(API_Proxy_BackendConsole api) { Id = api.Post <long>(ApiPath, JsonConvert.SerializeObject(this)); }