Пример #1
0
        public GenreBLL GenreFindByID(int GenreID)
        {
            GenreBLL ExpectedReturnValue = null;
            GenreDAL info = context.GenreFindByID(GenreID);

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