title: Cannot implicitly convert type 'void' to 'int'?
body: <p>Oke so I am fairly new to programming and I don't get why I get this error.</p>
  
  <p>My method should store mails which it does in this method:</p>
  
  <pre><code>    public void StoreMail(PhishingMail PhishingMail)
      {
          using (var phishingMailStorage = new PhishFinderModel())
          {
              phishingMailStorage.PhishingMail.Attach(PhishingMail);
  
              phishingMailStorage.SaveChanges();
  
          }
  </code></pre>
  
  <p>And then in my processPhishingMail method it calls the Store method. But then I get the error: Cannot implicitly convert type 'void' to 'int'.</p>
  
  <pre><code>public void ProcessPhishingMail(PhishingMail phishingMail)
  {                     
        Hashtable phishingUrls;
        int phishingMailId;
        int phishingUrlId;
        //Error convertion
        phishingMailId = _storageAgent.StoreMail(phishingMail);
  </code></pre>
  
  <p>So I can't really find a solution to convert from void to int. Maybe it's not possible? </p>
  
  <p>My question is: how do I convert these types in my code?</p>
  
  <p>Please don't be harsh I am really new to this. It feels like I am swimming in an ocean of information and I don't know where to look or start. So any suggested tutorials are very welcome.</p>