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 newsSmsObjUpdateRequest { [JsonProperty("id")] public string id { get; set; } [JsonProperty("title")] public string title { get; set; } [JsonProperty("serviceId")] public string serviceid { get; set; } [JsonProperty("content")] public string content { get; set; } [JsonProperty("dateSend")] public string dateSend { get; set; } [JsonProperty("type")] public string type { get; set; } public override string ToString() { return JsonConvert.SerializeObject(this); } } }