Created
August 31, 2018 12:40
-
-
Save gzamudio/22c129d93bdd2822d444ec8352381d1f to your computer and use it in GitHub Desktop.
Controller example
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
public class ExampleController : Controller | |
{ | |
private readonly IUnitOfWork _unitOfWork | |
public ExampleController(IUnitOfWork unitOfWork) | |
{ | |
this._unitOfWork = unitOfWork; | |
} | |
public IUnitOfWork UnitOfWork | |
{ | |
get { return this._unitOfWork; } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment