I am used to having static methods in the App_Code folder, this folder is no longer available in MVC template. These static methods I use all over the site.
How is it done in MVC, what is the best practice?
How do you call the common methods?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Typically I will have one or more class library projects in the same solution to hold auxiliary classes. Create your classes in a class library project, then reference that project’s DLL in your MVC web application. The exception to this would be any models, actual or view-only. These could be put in the Models folder.