public async Task <IActionResult> Create([Bind("Movie_Producer_ID,Movie_Producer_Name,Movie_Producer_Email,Movie_Producer_Mobile,Movie_Producer_Occupations")] Producer_details producer_details) { if (ModelState.IsValid) { _context.Add(producer_details); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(producer_details)); }
public async Task <IActionResult> Create([Bind("Movie_Origination_ID,Movie_ID,Movie_Producer_ID,Movie_Director_ID")] Movie_Origination_Table movie_Origination_Table) { if (ModelState.IsValid) { _context.Add(movie_Origination_Table); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(movie_Origination_Table)); }
public async Task <IActionResult> Create([Bind("Movie_ID,Movie_Name,Movie_Release_Date,Movie_Language,Movie_Running_Time")] Movie_details movie_details) { if (ModelState.IsValid) { _context.Add(movie_details); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(movie_details)); }