示例#1
0
 // Edit the movie with 'movieid' with all of the other values
 public static bool ModifyMovie(int MovieId, string MovieName, string director, string date, string studio, int length, string rating)
 {
     try
     {
         int directorId = GetDirector(director);
         int studioId   = GetStudio(studio);
         Call(SqlProcedures.ModifyMovie(MovieId, MovieName, directorId, date, studioId, length, rating));
         return(true);
     }
     catch (Exception e)
     {
         MessageBox.Show(e.Message);
         return(false);
     }
 }