/// <summary> /// Updates the visa details. /// </summary> /// <param name="objUpdateVisaDetails">The obj update visa details.</param> public void UpdateVisaDetails(BusinessEntities.VisaDetails objUpdateVisaDetails) { Rave.HR.DataAccessLayer.Employees.VisaDetails objUpdateVisaDetailsDAL; try { objUpdateVisaDetailsDAL = new Rave.HR.DataAccessLayer.Employees.VisaDetails(); objUpdateVisaDetailsDAL.UpdateVisaDetails(objUpdateVisaDetails); } catch (RaveHRException ex) { throw ex; } catch (Exception ex) { throw new RaveHRException(ex.Message, ex, Sources.BusinessLayer, CLASS_NAME, Fn_UpdateVisaDetails, EventIDConstants.RAVE_HR_EMPLOYEE_BUSNIESS_LAYER); } }
/// <summary> /// Deletes the visa details by emp id. /// </summary> /// <param name="EmployeeId">The employee id.</param> public void DeleteVisaDetailsByEmpId(int EmployeeId) { Rave.HR.DataAccessLayer.Employees.VisaDetails objDeleteVisaDetailsDAL; try { objDeleteVisaDetailsDAL = new Rave.HR.DataAccessLayer.Employees.VisaDetails(); objDeleteVisaDetailsDAL.DeleteVisaDetailsByEmpId(EmployeeId); } catch (RaveHRException ex) { throw ex; } catch (Exception ex) { throw new RaveHRException(ex.Message, ex, Sources.BusinessLayer, CLASS_NAME, Fn_DeleteVisaDetailsByEmpId, EventIDConstants.RAVE_HR_EMPLOYEE_BUSNIESS_LAYER); } }
/// <summary> /// Gets the visa details. /// </summary> /// <param name="objGetVisaDetails">The obj get visa details.</param> /// <returns></returns> public BusinessEntities.RaveHRCollection GetVisaDetails(BusinessEntities.VisaDetails objGetVisaDetails) { //Object declaration of QualificationDetails class Rave.HR.DataAccessLayer.Employees.VisaDetails objGetVisaDetailsDAL; try { //Created new instance of QualificationDetails class to call objGetQualificationDetailsDAL() of Data access layer objGetVisaDetailsDAL = new Rave.HR.DataAccessLayer.Employees.VisaDetails(); //Call to GetQualificationDetails() of Data access layer and return the Qualifications return(objGetVisaDetailsDAL.GetVisaDetails(objGetVisaDetails)); } catch (RaveHRException ex) { throw ex; } catch (Exception ex) { throw new RaveHRException(ex.Message, ex, Sources.BusinessLayer, CLASS_NAME, Fn_GetProfessionalDetails, EventIDConstants.RAVE_HR_EMPLOYEE_BUSNIESS_LAYER); } }