Skip to content

Instantly share code, notes, and snippets.

@Itslet
Created March 26, 2011 16:59
Show Gist options
  • Save Itslet/888442 to your computer and use it in GitHub Desktop.
Save Itslet/888442 to your computer and use it in GitHub Desktop.
public class HomeController : Controller
{
//
// GET: /Home/
public ILogger Logger { get; set; }
private readonly IStoryTeller _teller;
public HomeController(IStoryTeller teller)
{
_teller = teller;
}
public ActionResult Index()
{
string hoi = _teller.GoodMorning();
Response.Write("Hello <p>");
Response.Write(hoi);
Response.Write("</p>");
Logger.WarnFormat("Dit ging okee");
return View();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment