using System; using System.Collections.Generic; using System.Linq; using System.Web; using Newtonsoft.Json; namespace ResfullApi.Models { [Serializable] // {"id":"123","code":"23","name":"1"} public class usersProvice { [JsonProperty("id")] public string id { get; set; } [JsonProperty("code")] public string code { get; set; } [JsonProperty("name")] public string name { get; set; } public override string ToString() { return JsonConvert.SerializeObject(this); } } }