Exemplo n.º 1
0
 public HomeController()
 {
     _parcelService = new ABCParcelService();
     //_abcLib = new ABCLibrary();
     this.ApplicationDbContext = new ApplicationDbContext();
     this.UserManager          = new UserManager <ApplicationUser>(new UserStore <ApplicationUser>(this.ApplicationDbContext));
 }
        public AdminController()
        {
            //Object Initialisation
            _parcelService   = new ABCParcelService();
            _abcLib          = new ABCLibrary();
            _DBcontext       = new ABC.Models.ApplicationDbContext();
            _userBranch      = new UserBranch();
            _branchRecording = new Branch();

            this.ApplicationDbContext = new ApplicationDbContext();
            this.UserManager          = new UserManager <ApplicationUser>(new UserStore <ApplicationUser>(this.ApplicationDbContext));
        }
Exemplo n.º 3
0
 public ABCLibrary()
 {
     _parcelService = new ABCParcelService();
     _DBcontext     = new ABC.Models.ApplicationDbContext();
 }