Exemple #1
0
        /// <summary>
        /// Adds the address.
        /// </summary>
        /// <param name="objAddCertificationDetails">The obj add certification details.</param>
        public void AddEmergencyContact(BusinessEntities.EmergencyContact objEmergencyContact)
        {
            //Object declaration of objAddAddressDAL class
            Rave.HR.DataAccessLayer.Employees.EmergencyContact objAddEmergencyContactDAL;

            try
            {
                //Created new instance of CertificationDetails class to call AddCertificationDetails() of Data access layer
                objAddEmergencyContactDAL = new Rave.HR.DataAccessLayer.Employees.EmergencyContact();

                //Call to AddCertificationDetails() of Data access layer
                objAddEmergencyContactDAL.AddEmergencyContact(objEmergencyContact);
            }
            catch (RaveHRException ex)
            {
                throw ex;
            }
            catch (Exception ex)
            {
                throw new RaveHRException(ex.Message, ex, Sources.BusinessLayer, CLASS_NAME, ADDEMERGENCYCONTACT, EventIDConstants.RAVE_HR_EMPLOYEE_BUSNIESS_LAYER);
            }
        }
Exemple #2
0
        /// <summary>
        /// Gets the address.
        /// </summary>
        /// <param name="objEmployee">The obj get certification details.</param>
        /// <returns></returns>
        public BusinessEntities.RaveHRCollection GetEmergencyContact(BusinessEntities.EmergencyContact objGetEmergencyContact)
        {
            //Object declaration of QualificationDetails class
            Rave.HR.DataAccessLayer.Employees.EmergencyContact objEmergencyContactDAL;

            try
            {
                //Created new instance of QualificationDetails class to call objGetQualificationDetailsDAL() of Data access layer
                objEmergencyContactDAL = new Rave.HR.DataAccessLayer.Employees.EmergencyContact();

                //Call to GetQualificationDetails() of Data access layer and return the Qualifications
                return(objEmergencyContactDAL.GetEmergencyContact(objGetEmergencyContact));
            }
            catch (RaveHRException ex)
            {
                throw ex;
            }
            catch (Exception ex)
            {
                throw new RaveHRException(ex.Message, ex, Sources.BusinessLayer, CLASS_NAME, GETEMERGENCYCONTACT, EventIDConstants.RAVE_HR_EMPLOYEE_BUSNIESS_LAYER);
            }
        }
Exemple #3
0
        /// <summary>
        /// Deletes the qualification details.
        /// </summary>
        /// <param name="objDeleteEmergencyContact">The object delete qualification details.</param>
        public void DeleteEmergencyContact(BusinessEntities.EmergencyContact objDeleteEmergencyContact)
        {
            //Object declaration of EmergencyContact class
            Rave.HR.DataAccessLayer.Employees.EmergencyContact objDeleteEmergencyContactDAL;

            try
            {
                //Created new instance of EmergencyContact class to call DeleteEmergencyContact() of Data access layer
                objDeleteEmergencyContactDAL = new Rave.HR.DataAccessLayer.Employees.EmergencyContact();

                //Call to DeleteEmergencyContact() of Data access layer
                objDeleteEmergencyContactDAL.DeleteEmergencyContact(objDeleteEmergencyContact);
            }
            catch (RaveHRException ex)
            {
                throw ex;
            }
            catch (Exception ex)
            {
                throw new RaveHRException(ex.Message, ex, Sources.BusinessLayer, CLASS_NAME, DELETEEMERGENCYCONTACT, EventIDConstants.RAVE_HR_EMPLOYEE_BUSNIESS_LAYER);
            }
        }