public override void SetRepositories() { _RegisterService = new RegisterService((U, P, A) => ExecuteQueryWithTypedParametersAndNetworkAccessAsync(U, P, A)); _DynamixService = new DynamixService((U, P, A) => ExecuteQueryWithTypedParametersAndNetworkAccessAsync(U, P, A)); var _DynamixReturnService = new DynamixReturnService <List <DynamixContact> >((U, P, A) => ExecuteQueryWithReturnTypeAndNetworkAccessAsync <List <DynamixContact> >(U, P, A)); var _DynamixPolicyReturnService = new DynamixReturnService <DynamixPolicy>((U, P, A) => ExecuteQueryWithReturnTypeAndNetworkAccessAsync <DynamixPolicy>(U, P, A)); var _DynamixCommunityReturnService = new DynamixReturnService <DynamixCommunity>((U, P, A) => ExecuteQueryWithReturnTypeAndNetworkAccessAsync <DynamixCommunity>(U, P, A)); var _DynamixUserReturnService = new DynamixReturnService <GetUserReturnModel>((U, P, A) => ExecuteQueryWithReturnTypeAndNetworkAccessAsync <GetUserReturnModel>(U, P, A)); _RegisterRepo = new RegisterRepository(_MasterRepo, _RegisterService, _DynamixService, _DynamixReturnService, _DynamixPolicyReturnService, _DynamixCommunityReturnService, _DynamixUserReturnService); _SelfieRepo = new SelfieRepository(_MasterRepo); _Reposetory = new WelcomeRepository(_MasterRepo, _RegisterRepo, _SelfieRepo); }
public override void SetRepositories() { _Service = new WelcomeService((U, P, C, A) => ExecuteQueryWithReturnTypeAndNetworkAccessAsync <WelcomeResponse>(U, P, C, A)); _Reposetory = new WelcomeRepository(_MasterRepo, _Service); }
public WelcomeService(IWelcomeRepository welcomeRepository) { _welcomeRepository = welcomeRepository; }
public HomeController(IWelcomeRepository welcomeRepository) { this._welcomeRepository = welcomeRepository; }