/// <summary> /// This Function is used get the email id. /// </summary> /// <param name="empId"></param> /// <returns></returns> public string GetEmailID(int empId) { try { objContractProj = new Rave.HR.DataAccessLayer.Contracts.Contract(); return(objContractProj.GetEmailID(empId)); } catch (RaveHRException ex) { throw ex; } catch (Exception ex) { throw new RaveHRException(ex.Message, ex, Sources.BusinessLayer, CONTRACT, GETEMAILID, EventIDConstants.RAVE_HR_CONTRACT_BUSNIESS_LAYER); } }
//GetEmailID public string GetEmailIdByEmpId(int EmpId) { string result = string.Empty; try { //declares a dL layer object to call the Delete function. objContractProj = new Rave.HR.DataAccessLayer.Contracts.Contract(); //Calls the DL function to delete the Contract deatils. result = objContractProj.GetEmailID(EmpId); return(result); } catch (RaveHRException ex) { throw ex; } catch (Exception ex) { throw new RaveHRException(ex.Message, ex, Sources.BusinessLayer, CONTRACT, DELETE, EventIDConstants.RAVE_HR_CONTRACT_BUSNIESS_LAYER); } }