public MixtapeBLL MixtapeFindByID(int MixtapeID) { MixtapeBLL ExpectedReturnValue = null; MixtapeDAL info = context.MixtapeFindByID(MixtapeID); if (info != null) { ExpectedReturnValue = new MixtapeBLL(info); } return(ExpectedReturnValue); }
public List <MixtapeBLL> MixtapeGenresGetAllMixtapesByGenreID(int skip, int take, int GenreID) { List <MixtapeBLL> ExpectedReturnValue = new List <MixtapeBLL>(); List <MixtapeDAL> infos = context.MixtapeGenresGetAllMixtapesByGenreID(skip, take, GenreID); foreach (MixtapeDAL info in infos) { MixtapeBLL correctedInfo = new MixtapeBLL(info); ExpectedReturnValue.Add(correctedInfo); } return(ExpectedReturnValue); }
public List <MixtapeBLL> ListeningsGetAllMixtapeListeningsByUserID(int skip, int take, int UserID) { List <MixtapeBLL> ExpectedReturnValue = new List <MixtapeBLL>(); List <MixtapeDAL> infos = context.ListeningsGetAllMixtapeListeningsByUserID(skip, take, UserID); foreach (MixtapeDAL info in infos) { MixtapeBLL correctedInfo = new MixtapeBLL(info); ExpectedReturnValue.Add(correctedInfo); } return(ExpectedReturnValue); }