public IActionResult Index(CinemaForm form) { Cinema testCinema = new Cinema(form.CinemaId, form.CinemaName); testCinema.CreateRows(1, 10, form.RowCount); repo.cinemas.Add(testCinema); form = new CinemaForm(); return(View(repo.cinemas)); }
public IActionResult Index(CinemaForm form) { Cinema testCinema = new Cinema(form.CinemaId, form.CinemaName); testCinema.CreateRows(1, 10, form.RowCount); repo.cinemas.Add(testCinema); form = new CinemaForm(); return(View(repo.cinemas)); }