static void Main(string[] args) { xService = InstanceFactory.GetInstance <IXService>(); genericService = InstanceFactory.GetInstance <IGenericService <string> >(); xService.Method1(); genericService.GenericMethod("metin"); Console.ReadKey(); }
// GET: Home public ActionResult Index() { _xService.Method1(); _genericService.GenericMethod("123"); return(View()); }