I am using asp.net for development that uses both web forms and mvc.
I have some code in in an application that produces a downloadable excel file. If there are any validation issues, it shows issues in why the program cannot produce the excel file.
My question is what is the best way to create this code so that it is shared between multiple C# applications that use either MVC or Web Forms. I am new to web services to thinking of using that but I understand there is WCF and also MS Web APIs. Just looking for some suggestions. As mentioned, the code will either produce a downloadable excel file or show validation errors on why it could not produce it due to data issues.