public static User UserFromUserDataViewModel(UserDataViewModel userData)
        {
            User user = new User
            {
                ID             = userData.ID,
                UserName       = userData.UserName,
                ViewingMinutes = userData.ViewingMinutes
            };

            foreach (UserCurrencyViewModel currency in ChannelSession.Settings.Currencies.Values)
            {
                user.CurrencyAmounts.Add(CurrencyController.CurrencyAmountFromUserCurrencyViewModel(currency, userData.GetCurrencyAmount(currency)));
            }

            foreach (UserInventoryViewModel inventory in ChannelSession.Settings.Inventories.Values)
            {
                user.InventoryAmounts.Add(InventoryController.InventoryAmountFromUserInventoryViewModel(inventory, userData.GetInventory(inventory)));
            }

            return(user);
        }