Beispiel #1
0
        ///<summary>
        /// This method is used to get cricketers details by cricketer id
        ///</summary>
        ///<returns></returns>
        public List <CricketerProfile> GetCricketerDetailsById(int Id)
        {
            List <CricketerProfile> ObjCricketerDetails = null;

            try
            {
                ObjCricketerDetails = new CricketerDAL().GetCricketerDetailsById(Id);
            }
            catch (Exception)
            {
                throw;
            }
            return(ObjCricketerDetails);
        }
Beispiel #2
0
        ///<summary>
        /// This method is used to delete cricketer info
        ///</summary>
        ///<param name="cricketer"></param>
        ///<returns></returns>
        public int DeleteCricketerInfo(CricketerProfile cricketer)
        {
            int result = 0;

            try
            {
                result = new CricketerDAL().DeleteCricketerInfo(cricketer);
            }
            catch (Exception)
            {
                return(0);
            }
            return(result);
        }
Beispiel #3
0
        ///<summary>
        /// This method is used to get the cricketer list
        ///</summary>
        ///<returns></returns>
        public List <CricketerProfile> GetCricketerList()
        {
            List <CricketerProfile> ObjCricketers = null;

            try
            {
                ObjCricketers = new CricketerDAL().GetCricketerList();
            }
            catch (Exception)
            {
                throw;
            }
            return(ObjCricketers);
        }