Last post Dec 18, 2014 05:10 PM by Mikesdotnetting
Dec 18, 2014 04:01 PM|viaches|LINK
My question for experienced asp.net mvc programmers. Can you please share you thoughts & best cases of how it should be done - dll for BL, or BL inside controllers or even skip BL layer. Any suggestions might be helpful. Thanks!
Dec 18, 2014 05:10 PM|Mikesdotnetting|LINK
How you implement your business logic will depend on a lot of variables. There is no one-size-fits-all approach. All of the options have pros and cons. Here's Microsoft's general guidance: http://msdn.microsoft.com/en-gb/library/ee658103.aspx
Avoid putting your business logic in controllers. At the very least, you should have classes in your Model folder that are specifically tasked with implementing business logic. Whether these are "Service" classes or "Manager" classes or whatever is up to
you. Keep your business logic separate from your data layer too.