public async Task <IActionResult> Create([Bind("ID,Title,ReleaseDate,Genre,Price,Rating,PosterURL")] Movie movie) { if (ModelState.IsValid) { _context.Add(movie); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(movie)); }
public async Task <IActionResult> Create([Bind("ID,Name,PhoneNumber,Enabled")] Accounts accounts) { if (ModelState.IsValid) { _context.Add(accounts); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(accounts)); }