public async Task <IActionResult> Edit(Guid id, [Bind("Id,Name,AccountId,Field1_Name,Field2_Name,Field3_Name,Field4_Name,Field5_Name,Field6_Name,Field7_Name,Field8_Name")] Channel channel) { if (id != channel.Id) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(channel); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!ChannelExists(channel.Id)) { return(NotFound()); } else { throw; } } return(RedirectToAction(nameof(Index), new { accountid = channel.UserId })); } return(View(channel)); }