Ejemplo n.º 1
0
        private async void Init()
        {
            var user = await _userPreferenceService.GetUserByEmailId(App.CurrentLogInUser.Email);

            LocationName     = user.LocationName;
            localClientsList = _referenceDataService.Clients(App.CurrentUserProfile.LocationCode);
            ClientsList      = new ObservableCollection <Client>(localClientsList);
        }
Ejemplo n.º 2
0
        public UserTaskService(RestService restService, IDbContext dbContext,ITokenProvider tokenProvider, IUserPreferenceService userPreferenceService)
        {
            _restService = restService;
            _dbContext = dbContext;

            var _authToken = tokenProvider.GetCurrentToken().Result;
            _currentLoggedInUser = userPreferenceService.GetUserByEmailId(_authToken.Email).Result;
        }
Ejemplo n.º 3
0
        public UserTaskService(RestService restService, IDbContext dbContext, ITokenProvider tokenProvider, IUserPreferenceService userPreferenceService)
        {
            _restService = restService;
            _dbContext   = dbContext;

            var _authToken = tokenProvider.GetCurrentToken().Result;

            _currentLoggedInUser = userPreferenceService.GetUserByEmailId(_authToken.Email).Result;
        }
Ejemplo n.º 4
0
 public bool ShoudlHideBackButton()
 {
     return((_userPreferenceService.GetUserByEmailId(App.CurrentLogInUser.Email)) == null);
 }