Skip to content

Latest commit

 

History

History
22 lines (14 loc) · 244 Bytes

incorrectly-using-ioc-containers.md

File metadata and controls

22 lines (14 loc) · 244 Bytes
public class HomeController
{
  private readonly IExampleService _service;

  public HomeController()
  {
    _service = new ExampleService();
  }

  public ActionResult Index()
  {
    return View(_service.GetSomething());
  }
}