/// <summary> /// create a Genre model, takes two strings /// </summary> /// <param name="id_string"></param> /// <param name="genre_string"></param> /// <returns></returns> public static Genre CreateGenreModel(string id_string, string genre_string) { Genre genre = new Genre { genre_ID = Int32.Parse(id_string), genre_string = genre_string }; return genre; }
public static MovieToGenre CreateMovieMovieToGenre(int movieID, Genre genre) { //find the Genre equivalent of genre MovieToGenre movieToGenre = new MovieToGenre { genre_ID = genre.genre_ID, movie_ID = movieID }; return movieToGenre; }