Пример #1
0
        public MixtapeBLL MixtapeFindByID(int MixtapeID)
        {
            MixtapeBLL ExpectedReturnValue = null;
            MixtapeDAL info = context.MixtapeFindByID(MixtapeID);

            if (info != null)
            {
                ExpectedReturnValue = new MixtapeBLL(info);
            }
            return(ExpectedReturnValue);
        }
Пример #2
0
        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);
        }
Пример #3
0
        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);
        }