public GenreBLL GenreFindByID(int GenreID) { GenreBLL ExpectedReturnValue = null; GenreDAL info = context.GenreFindByID(GenreID); if (info != null) { ExpectedReturnValue = new GenreBLL(info); } return(ExpectedReturnValue); }
public List <GenreBLL> MixtapeGenresGetAllGenresByMixtapeID(int skip, int take, int MixtapeID) { List <GenreBLL> ExpectedReturnValue = new List <GenreBLL>(); List <GenreDAL> infos = context.MixtapeGenresGetAllGenresByMixtapeID(skip, take, MixtapeID); foreach (GenreDAL info in infos) { GenreBLL correctedInfo = new GenreBLL(info); ExpectedReturnValue.Add(correctedInfo); } return(ExpectedReturnValue); }
public List <GenreBLL> GenresGetAll(int skip, int take) { List <GenreBLL> ExpectedReturnValue = new List <GenreBLL>(); List <GenreDAL> infos = context.GenresGetAll(skip, take); foreach (GenreDAL info in infos) { GenreBLL correctedInfo = new GenreBLL(info); ExpectedReturnValue.Add(correctedInfo); } return(ExpectedReturnValue); }