using System; using System.Collections.Generic; using System.Linq; using System.Web; using Newtonsoft.Json; namespace ResfullApi.Models { [Serializable] // {"title":"xxxx","serviceId":"30","content":"cong hoa xa hoi chu nghia","dateSend":"01/12/2020 01:01:10"} public class newsObjGetRequest { [JsonProperty("id")] public string id { get; set; } [JsonProperty("serviceId")] public string serviceid { get; set; } [JsonProperty("status")] public string status { get; set; } [JsonProperty("date")] public string date { get; set; } [JsonProperty("top")] public string top { get; set; } [JsonProperty("isGetContent")] public string isGetContent { get; set; } public override string ToString() { return JsonConvert.SerializeObject(this); } } }