예제 #1
0
 public override bool AddorUpdate(Movie movie, bool Update)
 {
     if (Update)
     {
         return(repo.AddorUpdate("UPDATE T_Movies SET Title = '" + movie.Title + "', Year = '" + movie.Year + "', Description = '" + movie.Description + "'WHERE ID_Movie = " + movie.Id_Movie));
     }
     return(repo.AddorUpdate("INSERT INTO [T_Movies] ([Title], [Year], [Description]) VALUES ('" + movie.Title + "'," + movie.Year + ",'" + movie.Description + "')"));
 }