usersProvice.cs 584 B

123456789101112131415161718192021222324252627282930313233
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Web;
  5. using Newtonsoft.Json;
  6. namespace ResfullApi.Models
  7. {
  8. [Serializable]
  9. // {"id":"123","code":"23","name":"1"}
  10. public class usersProvice
  11. {
  12. [JsonProperty("id")]
  13. public string id { get; set; }
  14. [JsonProperty("code")]
  15. public string code { get; set; }
  16. [JsonProperty("name")]
  17. public string name { get; set; }
  18. public override string ToString()
  19. {
  20. return JsonConvert.SerializeObject(this);
  21. }
  22. }
  23. }