I have an MVC4 and a YAF site that I have completely merged. It was not that had hard after I found the right references. The key was to start with the YAF site, and pull in he MVC site. http://www.hanselman.com/blog/PlugInHybridsASPNETWebFormsAndASPMVCAndASPNETDynamicDataSideBySide.aspx
Anyway, the MVC website is really the main part of application. Users create accounts (YAF membership accounts) and then create reports and data. Do calculations. etc... Finally they produce reports that they want to share these in a forum. They only want to share these with other users of this same website. But it needs to be in a full feature forum. That is why I am using YAF. I did not want to redirect to another another website, that is why I did the merge. LOTS of advantages.
NOW, I need to create a new Topic in a specific Forum of the YAF portion of my application. I have already all of my forums, and I have a specific forum that I want to use. When the user presses a button to share their report on one of my pages I want to do the following.
1) Create a new Topic
2) Create Attachments
3) Append attachments to topic
4) Get the Topic Id for the new Topic or get a link to the new topic
Is there an API reference you can point me to please?
Or just help me get started.
Since the MVC side of the application uses the same membership provider, I have the same ownerId and everything else I need. I just don't know where to start.
My VS2010 solution looks just like the default that everyone downloads, but my website has all the MVC stuff (Controllers, Views, Models, global.asax, etc...).