Created
April 24, 2012 16:51
-
-
Save ferventcoder/2481406 to your computer and use it in GitHub Desktop.
Clean controllers in ASP.NET MVC
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Web.Mvc; | |
using WebProject.Domain; | |
using WebProject.Infrastructure.App.Services; | |
using WebProject.Web.Models; | |
namespace WebProject.Web.Controllers | |
{ | |
public class SomeController : BaseController<SomeModel, SomeDomain> | |
{ | |
public SomeController(ISomeRepositoryService someRepository) : base(someRepository) | |
{ | |
} | |
} | |
} |
AutoMapper is no longer required...
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Automapper and other goodness in the back end make for little typing on my end when a new controller is created.