title: How to validate models without Model validation in asp.net core MVC
body: <p>Model:</p>
  <pre><code>public class TransactionViewModel
  {
      [Key]
      public int Transaction_Id { get; set; }
      public string Account_Name { get; set; }
      public string Type { get; set; }
      public string Note { get; set; }
      public DateTime Date { get; set; }
      public int Amount { get; set; }
  
      public IEnumerable&lt;TransactionViewModel&gt; Transactions { get; set; }
  }
  </code></pre>
  <p>I want to validate models then by model validations concept I will do something like this:</p>
  <pre><code>[Required]
  [StringLength(100)]
  public string Account_Name { get; set; } = null!;
  
  [DataType(DataType.Date)]
  public DateTime date { get; set; }
  </code></pre>
  <p>and wherever we want we will just use:</p>
  <pre><code>if (!ModelState.IsValid)
  {
  }
  </code></pre>
  <p>but is there any other way to validate these models levels? as it is only specific to asp.net core, I want to know other ways of how to validate these fields</p>
  <p>Please answer this</p>