public async Task <IActionResult> Create([Bind("SongID,Title,Status,Contributor1Role,Contributor1,Contributor2Role,Contributor2,Contributor3Role,Contributor3")] Song song) { if (ModelState.IsValid) { _context.Add(song); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(song)); }
public async Task <IActionResult> Create([Bind("ApplicationUserID,Name,Role,Role2")] ApplicationUser applicationUser) { if (ModelState.IsValid) { _context.Add(applicationUser); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(applicationUser)); }