public ViewModels.UserDashboardViewModel GetUserDashboardFromViewModel(ViewModels.UserDashboardViewModel udvm)
        {
            CurrencyLibrary cLib  = new CurrencyLibrary();
            CountryLookup   cLook = new CountryLookup();

            return(new ViewModels.UserDashboardViewModel
            {
                UserName = this.UserID,
                AutoUpdateTrackerDefault = udvm.AutoUpdateTrackerDefault,
                DefaultCountry = udvm.DefaultCountry,
                DefaultCurrencyFrom = udvm.DefaultCurrencyFrom,
                DefaultCurrencyTo = udvm.DefaultCurrencyTo,
                DisplayName = udvm.DisplayName,
                Email = udvm.Email,
                Countries = cLook.GetSelectList(),
                Currencies = cLib.CurrencyFromSelect,
                CurrenciesTo = cLib.GetAllowedCurrenciesSelect(udvm.DefaultCurrencyFrom)
            });
        }
        public ViewModels.UserDashboardViewModel GetUserDashboardInformation()
        {
            CurrencyLibrary cLib  = new CurrencyLibrary();
            CountryLookup   cLook = new CountryLookup();
            var             res   = DIResolver.Data.NinjectConfig.GetKernal().Get <Data.RepositoryInterfaces.IUserRepository>();

            Data.Entities.UserEntity user = res.GetUser(this.UserID);

            return(new ViewModels.UserDashboardViewModel
            {
                UserName = this.UserID,
                AutoUpdateTrackerDefault = user.AutoUpdateEntries,
                DefaultCountry = (user.DefaultCountry) ?? "",
                DefaultCurrencyFrom = user.DefaultCurrencyFrom,
                DefaultCurrencyTo = (user.DefaultCurrencyTo) ?? "",
                DisplayName = user.DisplayName,
                Email = user.Email,
                Countries = cLook.GetSelectList(),
                Currencies = cLib.CurrencyFromSelect,
                CurrenciesTo = cLib.GetAllowedCurrenciesSelect((user.DefaultCurrencyFrom) ?? "")
            });
        }