public OrganizationController(WorkersInMotionDB context)
 {
     this._IOrganizationRepository = new OrganizationRepository(context);
     this._IUserProfileRepository = new UserProfileRepository(context);
     this._IUserRepository = new UserRepository(context);
     this._IGlobalUserRepository = new GlobalUserRepository(context);
     this._IRegionRepository = new RegionRepository(context);
     this._ITerritoryRepository = new TerritoryRepository(context);
     //  this._IGroupRepository = new GroupRepository(context);
     this._IOrganizationSubscriptionRepository = new OrganizationSubscriptionRepository(context);
     this._IUserSubscriptionRepository = new UserSubscriptionRepository(context);
     this._IMarketRepository = new MarketRepository(context);
 }
示例#2
0
 public MyCompanyController(WorkersInMotionDB context)
 {
     this._IUserProfileRepository = new UserProfileRepository(context);
     //  this._IGroupRepository = new GroupRepository(context);
     this._IRegionRepository     = new RegionRepository(context);
     this._ITerritoryRepository  = new TerritoryRepository(context);
     this._IUserRepository       = new UserRepository(context);
     this._IGlobalUserRepository = new GlobalUserRepository(context);
     this._IOrganizationSubscriptionRepository = new OrganizationSubscriptionRepository(context);
     this._IOrganizationRepository             = new OrganizationRepository(context);
     this._IUserSubscriptionRepository         = new UserSubscriptionRepository(context);
     this._IMarketRepository = new MarketRepository(context);
 }
 public CustomerViewController(WorkersInMotionDB context)
 {
     this._IOrganizationRepository = new OrganizationRepository(context);
     this._IUserRepository = new UserRepository(context);
     this._IOrganizationSubscriptionRepository = new OrganizationSubscriptionRepository(context);
     this._IUserSubscriptionRepository = new UserSubscriptionRepository(context);
     this._IPlaceRepository = new PlaceRepository(context);
     this._IPeopleRepository = new PeopleRepository(context);
     this._IMarketRepository = new MarketRepository(context);
     this._IUserProfileRepository = new UserProfileRepository(context);
     this._IRegionRepository = new RegionRepository(context);
     this._ITerritoryRepository = new TerritoryRepository(context);
     this._IGlobalUserRepository = new GlobalUserRepository(context);
 }
 public MyCompanyController()
 {
     this._IUserProfileRepository = new UserProfileRepository(new WorkersInMotionDB());
     //  this._IGroupRepository = new GroupRepository(new WorkersInMotionContext());
     this._IRegionRepository = new RegionRepository(new WorkersInMotionDB());
     this._ITerritoryRepository = new TerritoryRepository(new WorkersInMotionDB());
     this._IUserRepository = new UserRepository(new WorkersInMotionDB());
     this._IGlobalUserRepository = new GlobalUserRepository(new WorkersInMotionDB());
     this._IOrganizationSubscriptionRepository = new OrganizationSubscriptionRepository(new WorkersInMotionDB());
     this._IOrganizationRepository = new OrganizationRepository(new WorkersInMotionDB());
     this._IUserSubscriptionRepository = new UserSubscriptionRepository(new WorkersInMotionDB());
     this._IMarketRepository = new MarketRepository(new WorkersInMotionDB());
     this._IJobRepository = new JobRepository(new WorkersInMotionDB());
 }
 public OrganizationSubscriptionController(WorkersInMotionDB context)
 {
     this._IOrganizationSubscriptionRepository = new OrganizationSubscriptionRepository(context);
     this._IOrganizationRepository             = new OrganizationRepository(context);
     this._IGlobalUserRepository = new GlobalUserRepository(context);
 }
 public OrganizationSubscriptionController(WorkersInMotionDB context)
 {
     this._IOrganizationSubscriptionRepository = new OrganizationSubscriptionRepository(context);
     this._IOrganizationRepository = new OrganizationRepository(context);
     this._IGlobalUserRepository = new GlobalUserRepository(context);
 }
 public OrganizationSubscriptionManager(IOrganizationSubscriptionRepository repo,
                                        ICurrentUserAccessor currentUserAccessor)
 {
     _repo = repo;
     _currentUserAccessor = currentUserAccessor;
 }