public MovieExtendModel GetById(string imdbID, string userID) { if (imdbID.Equals(string.Empty) || imdbID.Equals("")) { throw new ArgumentOutOfRangeException(); } if (userID.Equals(string.Empty) || userID.Equals("")) { throw new ArgumentOutOfRangeException(); } DataTable dt = new DataTable(); MovieExtendModel movieModel = new MovieExtendModel(); using (MySqlCommand command = new MySqlCommand()) { dt = GetMultipleQuery(MovieExtendStringsMySql.GetById(imdbID, userID)); } foreach (DataRow ms in dt.Rows) { movieModel = MovieExtendModel.ToObject(ms); } return(movieModel); }