/// <summary> /// Gets the address. /// </summary> /// <param name="objEmployee">The obj get certification details.</param> /// <returns></returns> public BusinessEntities.RaveHRCollection GetAddress(BusinessEntities.Employee objEmployee) { //Object declaration of QualificationDetails class Rave.HR.DataAccessLayer.Employees.Address objAddressDAL; try { //Created new instance of QualificationDetails class to call objGetQualificationDetailsDAL() of Data access layer objAddressDAL = new Rave.HR.DataAccessLayer.Employees.Address(); //Call to GetQualificationDetails() of Data access layer and return the Qualifications return(objAddressDAL.GetEmployeeAddress(objEmployee)); } catch (RaveHRException ex) { throw ex; } catch (Exception ex) { throw new RaveHRException(ex.Message, ex, Sources.BusinessLayer, CLASS_NAME, GETADDRESS, EventIDConstants.RAVE_HR_EMPLOYEE_BUSNIESS_LAYER); } }
/// <summary> /// Adds the address. /// </summary> /// <param name="objAddCertificationDetails">The obj add certification details.</param> public void AddAddress(BusinessEntities.Address objAddress) { //Object declaration of objAddAddressDAL class Rave.HR.DataAccessLayer.Employees.Address objAddAddressDAL; try { //Created new instance of CertificationDetails class to call AddCertificationDetails() of Data access layer objAddAddressDAL = new Rave.HR.DataAccessLayer.Employees.Address(); //Call to AddCertificationDetails() of Data access layer objAddAddressDAL.AddAddress(objAddress); } catch (RaveHRException ex) { throw ex; } catch (Exception ex) { throw new RaveHRException(ex.Message, ex, Sources.BusinessLayer, CLASS_NAME, ADDADDRESS, EventIDConstants.RAVE_HR_EMPLOYEE_BUSNIESS_LAYER); } }