title: How to remove (via linq) duplicates from a List of objects
body: <p>My main object, has a property which is a List of tags</p>
  
  <pre><code>    [SharedCosmosCollection("shared")]
      public class GlobalPageTemplate : ISharedCosmosEntity
      {
          /// &lt;summary&gt;
          /// Id
          /// &lt;/summary&gt;
          [JsonProperty("Id")]
          public string Id { get; set; }
  
          /// &lt;summary&gt;
          /// Cosmos Entity name
          /// &lt;/summary&gt;
          [CosmosPartitionKey]
          public string CosmosEntityName { get; set; }
  
          /// &lt;summary&gt;
          /// Page name
          /// &lt;/summary&gt;
          public string ExtractedPageName { get; set; }
  
          /// &lt;summary&gt;
          /// Site collection Template Name
          /// &lt;/summary&gt;
          public string ExtractedSitecollectionTemplateName { get; set; }
  
          /// &lt;summary&gt;
          /// GlobalDesignTenantId
          /// &lt;/summary&gt;
          public string ExtractedGlobalDesignTenantId { get; set; }
  
          /// &lt;summary&gt;
          /// Global design tenant site collection url
          /// &lt;/summary&gt;
          public string ExtractedGlobalDesigntenantSiteCollectionUrl { get; set; }
  
  
          /// &lt;summary&gt;
          /// Page template picture Url
          /// &lt;/summary&gt;
          public string PageTemplatePictureUrl { get; set; }
  
          /// &lt;summary&gt;
          /// Base64 image of the page template
          /// &lt;/summary&gt;
          public string Base64Image { get; set; }
  
          /// &lt;summary&gt;
          /// Name of the template
          /// &lt;/summary&gt;
          public string PageTemplateName { get; set; }
  
  
          /// &lt;summary&gt;
          /// Page sections
          /// &lt;/summary&gt;
          public List&lt;Section&gt; Sections { get; set; }
  
          /// &lt;summary&gt;
          /// Tags
          /// &lt;/summary&gt;
          public List&lt;Tag&gt; Tags { get; set; }
      }
  </code></pre>
  
  <p>Tag object is here:</p>
  
  <pre><code> public class Tag : ISharedCosmosEntity
      {
          /// &lt;summary&gt;
          /// Id
          /// &lt;/summary&gt;
          [JsonProperty("Id")]
          public string Id { get; set; }
          /// &lt;summary&gt;
          /// Tag name
          /// &lt;/summary&gt;
          public string TagName { get; set; }
          /// &lt;summary&gt;
          /// cosmos entity name
          /// &lt;/summary&gt;
          [CosmosPartitionKey]
          public string CosmosEntityName { get; set; }
      }
  </code></pre>
  
  <p>In my WebAPI, from the frontend, I might get duplicate tags,</p>
  
  <p>how do I remove them and leave a clean list of tags before saving?</p>