Skip to content

Instantly share code, notes, and snippets.

@gzamudio
Created August 31, 2018 12:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gzamudio/22c129d93bdd2822d444ec8352381d1f to your computer and use it in GitHub Desktop.
Save gzamudio/22c129d93bdd2822d444ec8352381d1f to your computer and use it in GitHub Desktop.
Controller example
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