Example #1
0
        public IEnumerable <BooksDetails_BEL> GetPublisherBooks(int id)
        {
            Publisher_DAL objDal = new Publisher_DAL();

            try
            {
                return(objDal.GetPublisherBooks(id));
            }
            catch (Exception ex)
            {
                throw;
            }
            finally
            {
                objDal = null;
            }
        }
Example #2
0
        public Int32 DeletePublisherRecord(int id)
        {
            Publisher_DAL objDal = new Publisher_DAL();

            try
            {
                return(objDal.DeletePublisherRecord(id));
            }
            catch (Exception ex)
            {
                throw;
            }
            finally
            {
                objDal = null;
            }
        }
Example #3
0
        public IEnumerable <Publisher_BEL> GetPublisherRecords()
        {
            Publisher_DAL objDal = new Publisher_DAL();

            try
            {
                return(objDal.GetPublisherRecords());
            }
            catch (Exception ex)
            {
                throw;
            }
            finally
            {
                objDal = null;
            }
        }
Example #4
0
        public Publisher_BEL GetPublisherRecord(int id)
        {
            Publisher_DAL objDal = new Publisher_DAL();

            try
            {
                return(objDal.GetPublisherRecord(id));
            }
            catch (Exception ex)
            {
                throw;
            }
            finally
            {
                objDal = null;
            }
        }
Example #5
0
        public Int32 SavePublisherBooks(Publisher_BEL Publisher, IEnumerable <BooksDetails_BEL> Books)
        {
            Publisher_DAL objDal = new Publisher_DAL();

            try
            {
                return(objDal.SavePublisherBooks(Publisher, Books));
            }
            catch (Exception ex)
            {
                throw;
            }
            finally
            {
                objDal = null;
            }
        }
Example #6
0
        public Int32 SavePublisher(Publisher_BEL objBel)
        {
            Publisher_DAL objDal = new Publisher_DAL();

            try
            {
                return(objDal.SavePublishers(objBel));
            }
            catch (Exception ex)
            {
                throw;
            }
            finally
            {
                objDal = null;
            }
        }
Example #7
0
        public Int32 UpdatePublisherRecord(Publisher_BEL objBel)
        {
            Publisher_DAL objDal = new Publisher_DAL();

            try
            {
                return(objDal.UpdatePublisherRecord(objBel));
            }
            catch (Exception ex)
            {
                throw;
            }
            finally
            {
                objDal = null;
            }
        }