예제 #1
0
        /// <summary>
        /// To Delete
        /// </summary>
        /// <param name="Pap_NeighbrID"></param>
        /// <returns></returns>
        public int Delete(int Pap_NeighbrID)
        {
            NeighbourDAL NeighbourDALobj = new NeighbourDAL(); //Data pass -to Database Layer

            try
            {
                return(NeighbourDALobj.Delete(Pap_NeighbrID));
            }
            catch
            {
                throw;
            }
            finally
            {
                NeighbourDALobj = null;
            }
        }
예제 #2
0
        /// <summary>
        /// To Edit Neighbour
        /// </summary>
        /// <param name="Neighbourobj"></param>
        /// <returns></returns>
        public string EditNeighbr(NeighbourBO Neighbourobj)
        {
            NeighbourDAL NeighbourDALobj = new NeighbourDAL(); //Data pass -to Database Layer

            try
            {
                return(NeighbourDALobj.EditNeighbr(Neighbourobj));
            }
            catch
            {
                throw;
            }
            finally
            {
                NeighbourDALobj = null;
            }
        }
예제 #3
0
        /// <summary>
        /// To Get Neighbour By Id
        /// </summary>
        /// <param name="Pap_NeighbrID"></param>
        /// <returns></returns>
        public NeighbourBO GetNeighbrById(int Pap_NeighbrID)
        {
            NeighbourDAL NeighbourDALobj = new NeighbourDAL();

            return(NeighbourDALobj.GetNeighbrById(Pap_NeighbrID));
        }
예제 #4
0
        /// <summary>
        /// To Get Neighbour Details
        /// </summary>
        /// <param name="householdID"></param>
        /// <returns></returns>
        public NeighbourList  GetneigbrDetails(int householdID)
        {
            NeighbourDAL NeighbourDALobj = new NeighbourDAL();

            return(NeighbourDALobj.GetneigbrDetails(householdID));
        }