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));
        }
예제 #2
0
 public ABCLibrary()
 {
     _parcelService = new ABCParcelService();
     _DBcontext     = new ABC.Models.ApplicationDbContext();
 }