public async Task <IActionResult> GearOnChannelEditUserSettings(ChannelToGear channelToGear)
        {
            if (ModelState.IsValid)
            {
                _context.Update(channelToGear);
                await _context.SaveChangesAsync();

                return(RedirectToAction("Details", "Channels", new { id = channelToGear.ChannelId }));
            }
            ViewData["GearId"] = new SelectList(_context.Gear, "GearId", "Make", channelToGear.GearId);
            return(View(channelToGear));
        }
        public async Task <IActionResult> AddUsersFirstNewGearSettings(GearGrouped GearGroup)
        {
            foreach (SettingKnobViewModel item in GearGroup.GearSettings)
            {
                ChannelToGear channelToGear = new ChannelToGear
                {
                    KnobSetting = item.ChannelToGear.KnobSetting,
                    GearId      = item.ChannelToGear.GearId,
                    ChannelId   = item.ChannelToGear.ChannelId,
                    KnobId      = item.ChannelToGear.KnobId
                };
                _context.Add(channelToGear);
                await _context.SaveChangesAsync();
            }

            return(RedirectToAction("Details", "Channels", new { id = GearGroup.GearSettings[0].ChannelToGear.ChannelId }));
        }