/// <summary> /// The <c>EditMovie()</c> method receives a certain movie's id, title, genre, parental guidance, prime date, /// summary and wrapper from the presenter as parameters and executes the repository's method which is responsible /// of editting a certain movie in the database. /// </summary> /// <param name="id">This is the id of the movie.</param> /// <param name="title">This is the title of the movie.</param> /// <param name="genre">This is the genre of the movie.</param> /// <param name="pg">This is the parental guidance of the movie.</param> /// <param name="date">This is the prime date of the movie.</param> /// <param name="summary">This is the summary of the movie.</param> /// <param name="picture">This is the wrapper of the movie.</param> public void EditMovie (int id, string title, int genre, int pg, Nullable <DateTime> date, string summary, byte[] picture, int dur) { try { movie_repo.EditMovie(id, title, genre, pg, date, summary, picture, dur); } catch (ImpossibleDataBaseRecordUpdateException ex) { Logger.Logger.WriteToLogFile(ex.ToString()); } catch (NotFoundSuchItemException ex) { Logger.Logger.WriteToLogFile(ex.ToString()); } }