title: if statement should check part of string exists in mvc
body: <p>Below code saying substring doesnt exist in current context. Give me someother way to check whether my id contains 'DOM' or 'INT' in my view in mvc. </p>
  
  <p>My table:</p>
  
  <p><img src="https://i.stack.imgur.com/watRX.jpg" alt="enter image description here"></p>
  
  <p>My code:</p>
  
  <pre><code>@if( (SUBSTRING(Model.Id,7,9)) !== 'DOM' )
              {
              &lt;tr&gt;
         &lt;td&gt;Amount Approved for Domestic sector : &lt;/td&gt;
             &lt;td&gt;&lt;input id="Text1" type="text" /&gt;&lt;/td&gt;
  
                  &lt;/tr&gt;
              }
  </code></pre>