public static CompanyRespObj LoadCompanys(CommonSettingSearchObj regObj) { return(new CompanyRepository().LoadCompanies(regObj)); }
public static SalaryLevelRespObj LoadSalaryLevels(CommonSettingSearchObj regObj) { return(new SalaryLevelRepository().LoadSalaryLevels(regObj)); }
public static TerminationReasonRespObj LoadTerminationReasons(CommonSettingSearchObj regObj) { return(new TerminationReasonRepository().LoadTerminationReasons(regObj)); }
public static BankRespObj LoadBanks(CommonSettingSearchObj regObj) { return(new BankRepository().LoadBanks(regObj)); }
public static QualificationRespObj LoadQualifications(CommonSettingSearchObj regObj) { return(new QualificationRepository().LoadQualifications(regObj)); }
public static WorkFlowOrderItemRespObj LoadWorkflowOrderItems(CommonSettingSearchObj regObj) { return(new WorkflowOrderItemRepository().LoadWorkflowOrderItems(regObj)); }
public static ClassOfAwardRespObj LoadClassOfAwards(CommonSettingSearchObj regObj) { return(new ClassOfAwardRepository().LoadClassOfAwards(regObj)); }
public static KPIndexRespObj LoadkPIndexs(CommonSettingSearchObj regObj) { return(new KPIndexRepository().LoadkPIndexs(regObj)); }
public static PensionAdministratorRespObj LoadPensionAdministrators(CommonSettingSearchObj regObj) { return(new PensionAdministratorRepository().LoadPensionAdministrators(regObj)); }
public static JobSpecializationRespObj LoadJobSpecializations(CommonSettingSearchObj regObj) { return(new JobSpecializationRepository().LoadJobSpecializations(regObj)); }
public static JobLevelRespObj LoadJobLevels(CommonSettingSearchObj regObj) { return(new JobLevelRepository().LoadJobLevels(regObj)); }
public static InsurancePolicyTypeRespObj LoadInsurancePolicyTypes(CommonSettingSearchObj regObj) { return(new InsurancePolicyTypeRepository().LoadInsurancePolicyTypes(regObj)); }
public static InstitutionRespObj LoadInstitutions(CommonSettingSearchObj regObj) { return(new InstitutionRepository().LoadInstitutions(regObj)); }
public static CourseOfStudyRespObj LoadCourseOfStudys(CommonSettingSearchObj regObj) { return(new CourseOfStudyRepository().LoadCourseOfStudys(regObj)); }
public static DepartmentRespObj LoadDepartments(CommonSettingSearchObj regObj) { return(new DepartmentRepository().LoadDepartments(regObj)); }
public static ProfessionalBodyRespObj LoadProfessionalBodys(CommonSettingSearchObj regObj) { return(new ProfessionalBodyRepository().LoadProfessionalBodys(regObj)); }
public static LeaveTypeRespObj LoadLeaveTypes(CommonSettingSearchObj regObj) { return(new LeaveTypeRepository().LoadLeaveTypes(regObj)); }
public static ProfessionalMembershipTypeRespObj LoadProfessionalMembershipTypes(CommonSettingSearchObj regObj) { return(new ProfessionalMemshipTypeRepository().LoadProfessionalMembershipTypes(regObj)); }
public JobLevelRespObj LoadJobLevels(CommonSettingSearchObj searchObj) { var response = new JobLevelRespObj { Status = new APIResponseStatus { IsSuccessful = false, Message = new APIResponseMessage() } }; try { if (searchObj.Equals(null)) { response.Status.Message.FriendlyMessage = "Error Occurred! Unable to proceed with your request"; response.Status.Message.TechnicalMessage = "Registration Object is empty / invalid"; return(response); } if (!EntityValidatorHelper.Validate(searchObj, out var valResults)) { var errorDetail = new StringBuilder(); if (!valResults.IsNullOrEmpty()) { errorDetail.AppendLine("Following error occurred:"); valResults.ForEachx(m => errorDetail.AppendLine(m.ErrorMessage)); } else { errorDetail.AppendLine( "Validation error occurred! Please check all supplied parameters and try again"); } response.Status.Message.FriendlyMessage = errorDetail.ToString(); response.Status.Message.TechnicalMessage = errorDetail.ToString(); response.Status.IsSuccessful = false; return(response); } //if (!HelperMethods.IsUserValid(searchObj.AdminUserId, searchObj.SysPathCode, HelperMethods.getAllRoles(), ref response.Status.Message)) //{ // return response; //} var thisJobLevels = GetJobLevels(); if (!thisJobLevels.Any()) { response.Status.Message.FriendlyMessage = "No JobLevel Information found!"; response.Status.Message.TechnicalMessage = "No JobLevel Information found!"; return(response); } if (searchObj.Status > -1) { thisJobLevels = thisJobLevels.FindAll(p => p.Status == (ItemStatus)searchObj.Status); } var jobLevelItems = new List <JobLevelObj>(); thisJobLevels.ForEachx(m => { jobLevelItems.Add(new JobLevelObj { JobLevelId = m.JobLevelId, Name = m.Name, Status = (int)m.Status, StatusLabel = m.Status.ToString().Replace("_", " ") }); }); response.Status.IsSuccessful = true; response.JobLevels = jobLevelItems; return(response); } catch (DbEntityValidationException ex) { ErrorManager.LogApplicationError(ex.StackTrace, ex.Source, ex.Message); response.Status.Message.FriendlyMessage = "Error Occurred! Please try again later"; response.Status.Message.TechnicalMessage = "Error: " + ex.GetBaseException().Message; response.Status.IsSuccessful = false; return(response); } catch (Exception ex) { ErrorManager.LogApplicationError(ex.StackTrace, ex.Source, ex.Message); response.Status.Message.FriendlyMessage = "Error Occurred! Please try again later"; response.Status.Message.TechnicalMessage = "Error: " + ex.GetBaseException().Message; response.Status.IsSuccessful = false; return(response); } }
public static DisciplineRespObj LoadDisciplines(CommonSettingSearchObj regObj) { return(new DisciplineRepository().LoadDisciplines(regObj)); }