How to delete all Items from List by parentId
<p>I have a Simple CRUD application with categories and phones,
For single delete phone from <em>List</em> i uses:</p>

<pre><code>var arrayPhones = new List&lt;Phone&gt;();
        using (StreamReader file = new StreamReader(@"d:/phones.json"))
        {
            var strPhones = file.ReadToEnd();
            arrayPhones = JsonConvert.DeserializeObject&lt;List&lt;Phone&gt;&gt;(strPhones);


            var currentPhone = arrayPhones.Where(p =&gt; p.Id == phone.Id).SingleOrDefault();
            arrayPhones.Remove(currentPhone);
        }
</code></pre>

<p>Now i tring delete <em>Category</em> and all <em>Phones</em> of this category, model of my Phone:</p>

<pre><code> public class Phone
{
    [JsonProperty("id")]
    public int Id { get; set; }

    [JsonProperty("parentId")]
    public int ParentId { get; set; }

    [JsonProperty("caption")]
    public string Caption { get; set; }

    [JsonProperty("imgUrl")]
    public string ImgUrl { get; set; }
</code></pre>

<p>How i can delete all phones of category?
Thanks for answers!</p>