public void DoSomething(IMyBehaviour behaviour) { Utility.DoSomething(behaviour); }
public ActionResult Index() { var domainObject = new MyDomainObject(); var task = new MyTask(); task.DoSomething(domainObject); return View(); }