public void DeleteExistingTheatre(int theatreId) { using (var db = new PlayContext()) { SelectedTheatre = db.Theatres.Where(t => t.TheatreId == theatreId).FirstOrDefault(); db.Remove(SelectedTheatre); db.SaveChanges(); } }