I am developing a web application in ASP.NET MVC3 with C # and Razor.
I need to create a class where I put functions to convert strings to dates (years, months, days, etc.).
In ASP.NET Web Forms, I used these classes in the App_Code folder. There is no such folder in MVC, and I donβt think that utility classes belong to either the Model or the Helpers (the folder that I created to host my extensions in the HTML helpers).
I read that itβs good practice to put utility classes in another assembly . I suppose another project should do the job, but which project should I create? A simple class library project seems to be the most logical choice for me.
However, in my case, I just need to put one class with several methods, so if we ignore reuse, is it not logical to put the utility class somewhere in my MVC3 web application?
class-library asp.net-mvc-3 code-reuse utility-method
Cicciomiami
source share