public void InsertMovie(string contentProvider, string title, string genre, TimeSpan movieDuration, string country, string rightsIPTV, string rightsVOD, string svodRights, string ancillaryRights, DateTime startDate, DateTime expireDate, string comment, short year)
        {
            try
            {
                Movie newMovie = new Movie();
                newMovie.ContentProvider = contentProvider;
                newMovie.OriginalName = title;
                newMovie.Genre = genre;
                newMovie.Duration = movieDuration;
                newMovie.Country = country;

                newMovie.RightsIPTV = rightsIPTV;
                newMovie.RightsVOD = rightsVOD;
                newMovie.SVODRights = svodRights;
                newMovie.AncillaryRights = ancillaryRights;

                newMovie.StartDate = startDate;
                newMovie.ExpireDate = expireDate;

                newMovie.Comment = comment;
                newMovie.Year = year;

                context.Movies.AddObject(newMovie);
                context.SaveChanges();

            }
            catch (Exception ex)
            {
                throw ex;
            } 
        }
 /// <summary>
 /// Deprecated Method for adding a new object to the Movies EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToMovies(Movie movie)
 {
     base.AddObject("Movies", movie);
 }
 /// <summary>
 /// Create a new Movie object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="originalName">Initial value of the OriginalName property.</param>
 /// <param name="genre">Initial value of the Genre property.</param>
 /// <param name="country">Initial value of the Country property.</param>
 /// <param name="year">Initial value of the Year property.</param>
 public static Movie CreateMovie(global::System.Int32 id, global::System.String originalName, global::System.String genre, global::System.String country, global::System.Int16 year)
 {
     Movie movie = new Movie();
     movie.Id = id;
     movie.OriginalName = originalName;
     movie.Genre = genre;
     movie.Country = country;
     movie.Year = year;
     return movie;
 }