コード例 #1
0
        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();
 }