Example #1
0
        public List <Content> SearchForTitle(string title)
        {
            ChkContext();

            var coList = DALServices.SearchForTitle(context, title);

            return(coList);
        }
Example #2
0
        public List <AllContentForGrid> GetAllContents()
        {
            List <AllContentForGrid> allCntL = new List <AllContentForGrid>();

            allCntL = DALServices.GetAllContents(context);

            return(allCntL);
        }
Example #3
0
        public List <AllRatingsForGrid> GetAllRatingsForGrid()
        {
            List <AllRatingsForGrid> allGnrL = new List <AllRatingsForGrid>();

            allGnrL = DALServices.GetAllRatingsForGrid(context);

            return(allGnrL);
        }
Example #4
0
        public bool IsRatingDuplicate(string name)
        {
            ChkContext();
            bool b = DALServices.IsRatingDuplicate(context, name);

            ClearContext();
            return(b);
        }
Example #5
0
        public Genre GetGenre(int genreid)
        {
            Genre g = new Genre();

            using (context)
            {
                g = DALServices.GetGenre(context, genreid);
            }
            ClearContext();
            return(g);
        }
Example #6
0
        public int DeleteRating(int id)
        {
            var gnr = new Rating();

            gnr.Id = id;

            ChkContext();
            int results = DALServices.DeleteRating(context, gnr);

            ClearContext();
            return(results);
        }
Example #7
0
        public Rating GetRatingByCod(string mpaacode)
        {
            Rating gnr = new Rating();

            ChkContext();
            using (context)
            {
                gnr = DALServices.GetRatingByCode(context, mpaacode);
            }
            ClearContext();
            return(gnr);
        }
Example #8
0
        public Rating AddRating(Rating newgnr)
        {
            Rating gnr = new Rating();

            ChkContext();
            using (context)
            {
                gnr = DALServices.AddRating(context, newgnr);
            }
            ClearContext();
            return(gnr);
        }
Example #9
0
        public DVDIcon AddDVDIcon(DVDIcon newdvi)
        {
            DVDIcon dvi = new DVDIcon();

            ChkContext();
            using (context)
            {
                dvi = DALServices.AddDVDIcon(context, newdvi);
            }
            ClearContext();
            return(dvi);
        }
Example #10
0
        public List <Rating> GetAllRatings()
        {
            List <Rating> rL = new List <Rating>();

            ChkContext();
            using (context)
            {
                rL = DALServices.GetAllRatings(context);
            }
            ClearContext();
            return(rL);
        }
Example #11
0
        public Rating GetRating(int ratingid)
        {
            Rating r = new Rating();

            ChkContext();
            using (context)
            {
                r = DALServices.GetRating(context, ratingid);
            }
            ClearContext();
            return(r);
        }
Example #12
0
        public Genre GetGenreByName(string name)
        {
            Genre gnr = new Genre();

            ChkContext();
            using (context)
            {
                gnr = DALServices.GetGenreByname(context, name);
            }
            ClearContext();
            return(gnr);
        }
Example #13
0
        public Genre AddGenre(Genre newgnr)
        {
            Genre gnr = new Genre();

            ChkContext();
            using (context)
            {
                gnr = DALServices.AddGenre(context, newgnr);
            }
            ClearContext();
            return(gnr);
        }
Example #14
0
        public Genre UpdateGenre(Genre newgenre)
        {
            Genre g = new Genre();

            ChkContext();
            using (context)
            {
                g = DALServices.UpdateGenre(context, newgenre);
            }
            ClearContext();
            return(g);
        }
Example #15
0
        public List <Genre> GetAllGenres()
        {
            List <Genre> gL = new List <Genre>();

            ChkContext();
            using (context)
            {
                gL = DALServices.GetAllGenres(context);
            }
            ClearContext();
            return(gL);
        }
Example #16
0
        public List <DVDIcon> GetAllDVDIcons()
        {
            List <DVDIcon> dviL = new List <DVDIcon>();

            ChkContext();
            using (context)
            {
                dviL = DALServices.GetAllDVDIcons(context);
            }
            ClearContext();
            return(dviL);
        }
Example #17
0
        public DVDIcon GetDVDIconByName(string iconname)
        {
            DVDIcon dvi = new DVDIcon();

            ChkContext();
            using (context)
            {
                dvi = DALServices.GetDVDIconByname(context, iconname);
            }
            ClearContext();
            return(dvi);
        }
Example #18
0
        public Rating UpdateRating(Rating newrating)
        {
            Rating rating = new Rating();

            ChkContext();
            using (context)
            {
                rating = DALServices.UpdateRating(context, newrating);
            }
            ClearContext();
            return(rating);
        }
Example #19
0
        public DVDIcon GetDVDIcon(int dvdiconid)
        {
            DVDIcon dvi = new DVDIcon();

            ChkContext();
            using (context)
            {
                dvi = DALServices.GetDVDIcon(context, dvdiconid);
            }
            ClearContext();
            return(dvi);
        }
Example #20
0
        // get a box by number
        public StorageBox GetBox(int boxnumber)
        {
            StorageBox sb = DALServices.GetBox(context, boxnumber);

            return(sb);
        }
Example #21
0
        // ADD the next Case to a specific box
        public Case AddNextCase(int boxnum)
        {
            Case ca = DALServices.AddNextCase(context, boxnum);

            return(ca);
        }
Example #22
0
        // ADD a new DVD Box - no related records
        private StorageBox AddDVDBox()
        {
            StorageBox sb = DALServices.AddABox(context, "DVD");

            return(sb);
        }
Example #23
0
        // get next available box # for adding a new box
        public int GetNextBoxNumber()
        {
            int nxtbxn = DALServices.GetNextBoxNumber(context);

            return(nxtbxn);
        }
Example #24
0
        // get all content numbers per disc/case/box
        public List <DVDMC.AllContentNums> GetDiscContentNumbers(int boxnumber, int casenumber, int discnumber)
        {
            var cons = DALServices.GetDiscContentNumbers(context, boxnumber, casenumber, discnumber);

            return(cons);
        }
Example #25
0
        public int TotalContents()
        {
            var totals = DALServices.TotalContents(context);

            return(totals);
        }
Example #26
0
        // get all disc numbers per case/box
        public List <DVDMC.AllDiscNums> GetCaseDiscNumbers(int boxnumber, int casenumber)
        {
            var dins = DALServices.GetCaseDiscNumbers(context, boxnumber, casenumber);

            return(dins);
        }
Example #27
0
        // get all case numbers per box
        public List <DVDMC.AllCaseNums> GetBoxCaseNumbers(int boxnumber)
        {
            var cans = DALServices.GetBoxCaseNumbers(context, boxnumber);

            return(cans);
        }
Example #28
0
        // get all content numbers
        public List <DVDMC.AllContentNums> GetAllContentNumbers()
        {
            var consList = DALServices.GetAllContentNumbers(context);

            return(consList);
        }
Example #29
0
        // get all disc numbers
        public List <DVDMC.AllDiscNums> GetAllDiscNumbers()
        {
            var dinsList = DALServices.GetAllDiscNumbers(context);

            return(dinsList);
        }
Example #30
0
        // get all box numbers
        public List <int> GetAllBoxNumbers()
        {
            var bxnsList = DALServices.GetAllBoxNumbers(context);

            return(bxnsList);
        }