示例#1
0
        /// <summary>
        /// Adds the CR details.
        /// </summary>
        /// <param name="objAddQualificationDetails">The obj add qualification details.</param>
        public void AddCRDetails(BusinessEntities.Contract objAddCRDetails)
        {
            //Object declaration of Contract class
            Rave.HR.DataAccessLayer.Contracts.Contract objAddCRDetailsDAL;

            try
            {
                //Created new instance of Contract class to call AddCRDetails() of Data access layer
                objAddCRDetailsDAL = new Rave.HR.DataAccessLayer.Contracts.Contract();

                //Call to AddCRDetails() of Data access layer
                objAddCRDetailsDAL.AddCRDetails(objAddCRDetails);
            }
            catch (RaveHRException ex)
            {
                throw ex;
            }
            catch (Exception ex)
            {
                throw new RaveHRException(ex.Message, ex, Sources.BusinessLayer, CONTRACT, "AddCRDetails", EventIDConstants.RAVE_HR_EMPLOYEE_BUSNIESS_LAYER);
            }
        }