/// <summary>
 /// This method is used for deleting the Seminars Training details
 /// </summary>
 /// <param name="RaiseTraining"></param>
 /// <returns>RaiseSeminarsID</returns>
 public string DeleteSeminarsTraining(BusinessEntities.RaiseTrainingRequest RaiseTraining)
 {
     try
     {
         saveTrainingDL = new Rave.HR.DataAccessLayer.Training.RaiseTrainingRequest();
         return(saveTrainingDL.DeleteSeminarsTraining(RaiseTraining));
     }
     catch (RaveHRException ex)
     {
         throw ex;
     }
     catch (Exception ex)
     {
         throw new RaveHRException(ex.Message, ex, Sources.BusinessLayer, RaiseTrainingRqst, FunctionDeleteSeminarsTraining, EventIDConstants.TRAINING_BUSINESS_ACCESS_LAYER);
     }
 }
        public int CheckDuplication(BusinessEntities.RaiseTrainingRequest RaiseTraining)
        {
            try
            {
                saveTrainingDL = new Rave.HR.DataAccessLayer.Training.RaiseTrainingRequest();

                return(saveTrainingDL.CheckDuplication(RaiseTraining));
            }
            catch (RaveHRException ex)
            {
                throw ex;
            }
            catch (Exception ex)
            {
                throw new RaveHRException(ex.Message, ex, Sources.BusinessLayer, RaiseTrainingRqst, "FunctionCheckDuplication", EventIDConstants.TRAINING_BUSINESS_ACCESS_LAYER);
            }
        }
        public string UpdateRaiseTrainingStatus(BusinessEntities.RaiseTrainingRequest RaiseTraining)
        {
            try
            {
                saveTrainingDL = new Rave.HR.DataAccessLayer.Training.RaiseTrainingRequest();

                return(saveTrainingDL.UpdateRaiseTrainingStatus(RaiseTraining));
            }
            catch (RaveHRException ex)
            {
                throw ex;
            }
            catch (Exception ex)
            {
                throw new RaveHRException(ex.Message, ex, Sources.BusinessLayer, RaiseTrainingRqst, "SaveApproveRejectTrainingRequest", EventIDConstants.TRAINING_BUSINESS_ACCESS_LAYER);
            }
        }
 /// <summary>
 /// View the Seminars Training Summary details.
 /// </summary>
 /// <param name="RaiseTraining"></param>
 /// <returns></returns>
 public BusinessEntities.RaveHRCollection ApproveRejectViewSeminarsTraining(BusinessEntities.RaiseTrainingRequest RaiseTraining, BusinessEntities.ParameterCriteria objParameter, ref int pageCount, ref int CurrentIndexCount)
 {
     try
     {
         saveTrainingDL = new Rave.HR.DataAccessLayer.Training.RaiseTrainingRequest();
         BusinessEntities.RaveHRCollection raveHRCollection = new BusinessEntities.RaveHRCollection();
         raveHRCollection = saveTrainingDL.ApproveRejectViewSeminarsTraining(RaiseTraining, objParameter, ref pageCount, ref CurrentIndexCount);
         return(raveHRCollection);
     }
     catch (RaveHRException ex)
     {
         throw ex;
     }
     catch (Exception ex)
     {
         throw new RaveHRException(ex.Message, ex, Sources.BusinessLayer, RaiseTrainingRqst, "FunctionApproveRejectViewSeminarsTraining", EventIDConstants.TRAINING_BUSINESS_ACCESS_LAYER);
     }
 }
 /// <summary>
 /// Gets the Seminars Training details.
 /// </summary>
 /// <param name="RaiseTraining"></param>
 /// <returns>RaiseTrainingCollection</returns>
 public BusinessEntities.RaiseTrainingRequest GetSeminarsTraining(int RaiseID)
 {
     try
     {
         RaiseTrainingCollection = new BusinessEntities.RaiseTrainingRequest();
         saveTrainingDL          = new Rave.HR.DataAccessLayer.Training.RaiseTrainingRequest();
         RaiseTrainingCollection = saveTrainingDL.GetSeminarsTraining(RaiseID);
         return(RaiseTrainingCollection);
     }
     catch (RaveHRException ex)
     {
         throw ex;
     }
     catch (Exception ex)
     {
         throw new RaveHRException(ex.Message, ex, Sources.BusinessLayer, RaiseTrainingRqst, FunctionGetSeminarsTraining, EventIDConstants.TRAINING_BUSINESS_ACCESS_LAYER);
     }
 }
        /// <summary>
        /// This method is used for saving the KSS Training details
        /// </summary>
        /// <param name="RaiseTraining"></param>
        /// <returns></returns>
        public int SaveKSS(BusinessEntities.RaiseTrainingRequest RaiseTraining)
        {
            int RaiseTrainingID = 0;

            try
            {
                saveTrainingDL = new Rave.HR.DataAccessLayer.Training.RaiseTrainingRequest();

                RaiseTrainingID = saveTrainingDL.SaveKSS(RaiseTraining);
                return(RaiseTrainingID);
            }
            catch (RaveHRException ex)
            {
                throw ex;
            }
            catch (Exception ex)
            {
                throw new RaveHRException(ex.Message, ex, Sources.BusinessLayer, RaiseTrainingRqst, SAVEKSS, EventIDConstants.TRAINING_BUSINESS_ACCESS_LAYER);
            }
        }