Cannot implicitly convert type 'void' to 'int'?
问题 Oke so I am fairly new to programming and I don't get why I get this error. My method should store mails which it does in this method: public void StoreMail(PhishingMail PhishingMail) { using (var phishingMailStorage = new PhishFinderModel()) { phishingMailStorage.PhishingMail.Attach(PhishingMail); phishingMailStorage.SaveChanges(); } And then in my processPhishingMail method it calls the Store method. But then I get the error: Cannot implicitly convert type 'void' to 'int'. public void