title: How to solve the error in the below email content in C#
body: <p>I am using C# MVC Architecture.</p>
  <p>I am going to retrieve the questions from the database and display in the email content as a list of questions.</p>
  <p>Below is the method of the email template.</p>
  <pre><code> public bool SendJobAcceptanceToRecruiter(string recruiterName, string recruiterEmail, string jobTitle,string joblink, string mailBody, string organization, List&lt;JobQuestion&gt; ques)
      {
          string subject = &quot;Job Advert Accepted - &quot; + jobTitle + &quot;-&quot; + organization;
          var generaltemplate = GetEmailTemplate(&quot;GENERAL EMAIL TEMPLATE&quot;);
          var template = &quot;&lt;br/&gt;Hello &quot; + organization + &quot;&lt;br/&gt;&quot; +
          &quot;&lt;br/&gt;Your Job Advert has now been accepted.&lt;br/&gt;&quot; +
          &quot;&lt;br/&gt;View Job Posted: &quot; + joblink + &quot;&lt;br/&gt;&quot; +
           &quot;&lt;br/&gt;Questions Posted: &quot; + ques + &quot;&lt;br/&gt;&quot; +
          &quot;&lt;br/&gt;Please contact us if you need more information.&lt;br/&gt;&quot;;
          var body = generaltemplate.Replace(&quot;@Content&quot;, template);
          body = body.Replace(&quot;@Orgname&quot;, organization);        
          body = body.Replace(&quot;@JobLink&quot;, joblink) + GetEmailFooter();
          var result = _emailProvider.SendEmail(recruiterEmail, subject, body, true);     
          return result;
      }
  </code></pre>
  <p>Here for the List of questions, I get the questions as below.</p>
  <p><a href="https://i.stack.imgur.com/MBqBv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MBqBv.png" alt="enter image description here" /></a></p>
  <p><a href="https://i.stack.imgur.com/VGoVw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VGoVw.png" alt="enter image description here" /></a></p>
  <p>I want to display the 'Question' in the second image as list of questions(In the above case as the count is 7,want to display the 7 questions) with numbering starting from 1.(Number of questions may differ according to the advert.) as a list in the email content.</p>
  <p>Every other details(jobTitle,JobLink,RecruiterEmail etc..) are displayed in the email.
  Only the 'ques' under Questions Posted: in the email content are displayed as</p>
  <p>[![enter image description here][3]][3]</p>
  <p>I want the content to be displayed as,</p>
  <p>1.Question 1</p>
  <p>2.Question 3</p>
  <p>3.Question 3
  ...</p>
  <p>How can I solve this?</p>