newsWebObjUpdateRequest.cs 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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":"2","title":"xxxx","serviceId":"30","content":"cong hoa xa hoi chu nghia","description":"01/12/2020 01:01:10","urlPicture":"http://quangbh.jpg","type":"1"}
  10. public class newsWebObjUpdateRequest
  11. {
  12. [JsonProperty("id")]
  13. public string id { get; set; }
  14. [JsonProperty("title")]
  15. public string title { get; set; }
  16. [JsonProperty("serviceId")]
  17. public string serviceid { get; set; }
  18. [JsonProperty("content")]
  19. public string content { get; set; }
  20. [JsonProperty("description")]
  21. public string description { get; set; }
  22. [JsonProperty("urlPicture")]
  23. public string urlPicture { get; set; }
  24. [JsonProperty("type")]
  25. public string type { get; set; }
  26. public override string ToString()
  27. {
  28. return JsonConvert.SerializeObject(this);
  29. }
  30. }
  31. }