public async Task <IActionResult> Create([Bind("Id,ArtistName,DateOfBirth")] Artist artist) { if (ModelState.IsValid) { await _dataLayerAccess.AddArtistAsync(artist); return(RedirectToAction(nameof(Index))); } return(View(artist)); }
public async Task <IActionResult> Create([Bind("Id,ArtistName,DateOfBirth")] Artist artist) { if (ModelState.IsValid) { await _dataLayerAccess.AddArtistAsync(artist); return(RedirectToAction(nameof(Index))); } return(View(artist)); }