public JobTitleJobGrade CreateJobTitleJobGrade(int organisationId, JobTitleJobGrade jobTitleJobGrade) { using (var context = _databaseFactory.Create(organisationId)) { var result = context.JobTitleJobGrades.Add(jobTitleJobGrade); context.SaveChanges(); return(result); } }
public JobTitleJobGrade CreateJobTitleJobGrade(int organisationId, int jobTitleId, int jobGradeId) { var jobTitleJobGrade = new JobTitleJobGrade() { OrganisationId = organisationId, JobTitleId = jobTitleId, JobGradeId = jobGradeId }; return(_hrDataService.CreateJobTitleJobGrade(organisationId, jobTitleJobGrade)); }