There is such a method:
public List<string> GetAccountsYield() { var client = new WebClient(); client.Headers.Add("PddToken", token); client.Encoding = Encoding.UTF8; string result = client.DownloadString(getMail); JObject json = JObject.Parse(result); var accounts = from account in json["accounts"] select account["fname"].Value<string>(); return accounts.ToList(); } I send a list of last names, but I want to structure it and transfer the received data to such a model, for example
public class Mail { public string Fname { get; set; } } And then display already in View.