Exemplo n.º 1
0
        /// <summary>
        /// Updates the qualification details.
        /// </summary>
        /// <param name="objUpdateContactDetails">The object update qualification details.</param>
        public void UpdateContactDetails(BusinessEntities.ContactDetails objUpdateContactDetails)
        {
            //Object declaration of ContactDetails class
            Rave.HR.DataAccessLayer.Employees.ContactDetails objUpdateContactDetailsDAL;

            try
            {
                //Created new instance of ContactDetails class to call UpdateContactDetails() of Data access layer
                objUpdateContactDetailsDAL = new Rave.HR.DataAccessLayer.Employees.ContactDetails();

                //Call to UpdateContactDetails() of Data access layer
                objUpdateContactDetailsDAL.UpdateContactDetails(objUpdateContactDetails);
            }
            catch (RaveHRException ex)
            {
                throw ex;
            }
            catch (Exception ex)
            {
                throw new RaveHRException(ex.Message, ex, Sources.BusinessLayer, CLASS_NAME, UPDATECONTACTDETAILS, EventIDConstants.RAVE_HR_EMPLOYEE_BUSNIESS_LAYER);
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// Allocates the seat.
        /// </summary>
        /// <param name="objGetContactDetails">The obj get contact details.</param>
        /// <returns></returns>
        public int AllocateSeat(BusinessEntities.ContactDetails objGetContactDetails)
        {
            //Object declaration of ContactDetails class
            Rave.HR.DataAccessLayer.Employees.ContactDetails objGetContactDetailsDAL;

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

                //Call to GetContactDetails() of Data access layer and return the Qualifications
                return(objGetContactDetailsDAL.AllocateSeat(objGetContactDetails));
            }
            catch (RaveHRException ex)
            {
                throw ex;
            }
            catch (Exception ex)
            {
                throw new RaveHRException(ex.Message, ex, Sources.BusinessLayer, CLASS_NAME, ALLOCATESEAT, EventIDConstants.RAVE_HR_EMPLOYEE_BUSNIESS_LAYER);
            }
        }