public PostController()
 {
     _shipperHndBcontext  = new ShipperHNDBcontext();
     Control              = new LogControl();
     _postBusiness        = new PostBusiness(_shipperHndBcontext);
     _phoneNumberBusiness = new PhoneNumberBusiness(_shipperHndBcontext);
     _logControl          = new LogControl();
 }
Exemple #2
0
        public FetchData(ShipperHNDBcontext shipperHndBcontext)
        {
            _logControl   = new LogControl();
            _clientId     = WebConfigurationManager.AppSettings["CLIENT_ID"];
            _clientSecret = WebConfigurationManager.AppSettings["CLIENT_SECRET"];
            _idgroup1     = WebConfigurationManager.AppSettings["IDGROUP1"];
            _idgroup2     = WebConfigurationManager.AppSettings["IDGROUP2"];

            _shipperHndBcontext  = shipperHndBcontext;
            _postBusiness        = new PostBusiness(_shipperHndBcontext);
            _userBusiness        = new UserBusiness(_shipperHndBcontext);
            _phoneNumberBusiness = new PhoneNumberBusiness(_shipperHndBcontext);
        }
        public UserController()
        {
            var shipperHndBcontext = new ShipperHNDBcontext();

            _userBusiness = new UserBusiness(shipperHndBcontext);
        }
        public CommentController()
        {
            ShipperHNDBcontext shipperHndBcontext = new ShipperHNDBcontext();

            _commentBusiness = new CommentBusiness(shipperHndBcontext);
        }
Exemple #5
0
 public NotificationBusiness(ShipperHNDBcontext shipperHndBcontext)
 {
     _shipperHndBcontext = shipperHndBcontext;
 }