Example #1
0
        /// <summary>
        /// To Insert to Database
        /// </summary>
        /// <param name="PermanentStructureobj"></param>
        /// <returns></returns>
        public int Insert(PermanentStructureBO PermanentStructureobj)
        {
            PermanentStructureDAL DALobj = new PermanentStructureDAL(); //Data pass -to Database Layer

            try
            {
                return(DALobj.Insert(PermanentStructureobj));
            }
            catch (Exception ex)
            {
                throw ex;
            }
            finally
            {
                PermanentStructureobj = null;
            }
        }
Example #2
0
        /// <summary>
        /// To Update Photo
        /// </summary>
        /// <param name="PermanentStructureobj1"></param>
        /// <returns></returns>
        public int Updatephoto(PermanentStructureBO PermanentStructureobj1)
        {
            PermanentStructureDAL DALobj = new PermanentStructureDAL(); //Data pass -to Database Layer

            try
            {
                return(DALobj.Updatephoto(PermanentStructureobj1));
            }
            catch (Exception ex)
            {
                throw ex;
            }
            finally
            {
                PermanentStructureobj1 = null;
            }
        }
Example #3
0
        /// <summary>
        /// To Get Occupant status
        /// </summary>
        /// <returns></returns>
        public PermanentStructureList GetOccupantstatus()
        {
            PermanentStructureDAL DALobj = new PermanentStructureDAL();

            try
            {
                return(DALobj.GetOccupantstatus());
            }
            catch (Exception erromsg)
            {
                throw (erromsg);
            }
            finally
            {
                DALobj = null;
            }
        }
Example #4
0
        /// <summary>
        /// To GET STRUCTURE ID
        /// </summary>
        /// <param name="STRUCTUREID"></param>
        /// <returns></returns>
        public PermanentStructureBO GetSTRUCTUREID(int STRUCTUREID)
        {
            PermanentStructureDAL DALobj = new PermanentStructureDAL();

            return(DALobj.GetSTRUCTUREID(STRUCTUREID));
        }
Example #5
0
        /// <summary>
        /// To Get Permanent Structure
        /// </summary>
        /// <param name="hhid"></param>
        /// <returns></returns>
        public PermanentStructureList GetPermanentStructure(string hhid)
        {
            PermanentStructureDAL PermanentStructureDALobj = new PermanentStructureDAL();

            return(PermanentStructureDALobj.GetPermanentStructure(hhid));
        }
Example #6
0
        /// <summary>
        /// To Delete Permanent Structure
        /// </summary>
        /// <param name="structurId"></param>
        /// <returns></returns>
        public int DeletePermanentStruct(string structurId)
        {
            PermanentStructureDAL DALobj = new PermanentStructureDAL();

            return(DALobj.DeletePermanentStruct(structurId));
        }