예제 #1
0
 public GradeController()
 {
     mapper     = ConfigMapper.Config();
     repository = AutofacConfig.Confing()
                  .BeginLifetimeScope()
                  .Resolve <IGenericRepository <Grade> >();
 }
예제 #2
0
 protected void Application_Start()
 {
     AreaRegistration.RegisterAllAreas();
     GlobalConfiguration.Configure(WebApiConfig.Register);
     FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
     RouteConfig.RegisterRoutes(RouteTable.Routes);
     BundleConfig.RegisterBundles(BundleTable.Bundles);
     ConfigMapper.Config();
 }