protected void Page_Load(object sender, EventArgs e)
        {
            // Initializes a new instance of the Ninject.StandardKernel class.
            StandardKernel _Kernal = new StandardKernel();

            //load Modules
            _Kernal.Load(Assembly.GetExecutingAssembly());
            //Gets an instance of the specified service.
            // In this step Ninject will inject DL object to BL
            ISampleBL _sampleBL = _Kernal.Get <ISampleBL>();

            _sampleBL.AddData();
        }
 public SampleInitialLoad(ISampleBL sampleBL)
 {
     _sampleBL = sampleBL;
 }
Пример #3
0
 public SampleController(ISampleBL sample)
 {
     this.sample = sample;
 }