title: How to make my name field unique
body: <p>How to make my <code>Name</code> Field in my api model unique?</p>
  
  <pre><code>using System.ComponentModel.DataAnnotations;
  
  namespace API.Models
  {
      public class Users
      {
          public int Id { get; set; }
  
          [Required]
          public string Name { get; set; }
  
          public string FullName { get; set; }
  
          [Required]
          public string PasswordHash { get; set; }
      }
  }
  </code></pre>