public async Task <IActionResult> Create([Bind("Id,name,price,eventDate,genre,minimalAge,performers,ticketsCounter,club,imageUrl")] Party party) { if (ModelState.IsValid) { _context.Add(party); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(party)); }
public async Task <IActionResult> Create([Bind("Id,SpotifyId")] Performer performer) { if (ModelState.IsValid) { _context.Add(performer); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(performer)); }