Created
December 5, 2010 20:59
-
-
Save Itslet/729462 to your computer and use it in GitHub Desktop.
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
namespace Concepts.Web.Controllers | |
{ | |
public class HomeController : Controller | |
{ | |
private IPersonRepository _repo; | |
public HomeController(IPersonRepository repository) | |
{ | |
_repo = repository; | |
} | |
[TransactionFilter] | |
public ActionResult Index() | |
{ | |
var persons = this._repo.GetPersons(); | |
foreach (var p in persons) | |
{ | |
Response.Write(p.GivenName + "<br />"); | |
} | |
return View(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment