示例#1
0
 public System.String ToJSON()
 {
     return("{\"data\" : " + data.ToString() + "}");
 }
示例#2
0
 /// <summary>
 /// Deletes a existing resource.
 /// </summary>
 /// <param name="ID">The ID of the resource to be deleted.</param>
 public void Delete(System.Int16 ID) => this.Delete(ID.ToString());
示例#3
0
 /// <summary>
 /// Gets a single resource by ID.
 /// </summary>
 /// <param name="ID">The ID of the resource to show.</param>
 /// <returns>A resource represented by ID.</returns>
 public T Show(System.Int16 ID) => this.Show(ID.ToString());
示例#4
0
 /// <summary>
 /// Deletes a existing resource.
 /// </summary>
 /// <param name="ID">The ID of the resource to be deleted.</param>
 public async System.Threading.Tasks.Task DeleteAsync(System.Int16 ID) => await this.DeleteAsync(ID.ToString());
示例#5
0
 /// <summary>
 /// Updates a resource partially.
 /// </summary>
 /// <param name="ID">The ID of the resource to be modified.</param>
 /// <param name="Model">The object that contains the fields and values ​​to be modified.</param>
 /// <returns>The modified resource.</returns>
 public T Modify(System.Int16 ID, System.Object Model) => this.Modify(ID.ToString(), Model);