| 12345678910111213141516171819202122232425262728293031323334 |
- 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","description":"vi du 1","urlPicture":"http://123.jpg"}
- public class newsWebObjRequest
- {
- [JsonProperty("title")]
- public string title { get; set; }
- [JsonProperty("serviceId")]
- public string serviceid { get; set; }
- [JsonProperty("content")]
- public string content { get; set; }
- [JsonProperty("description")]
- public string description { get; set; }
- [JsonProperty("urlPicture")]
- public string urlPicture { get; set; }
- public override string ToString()
- {
- return JsonConvert.SerializeObject(this);
- }
- }
- }
|