public List <JobDAO> GetJobs() { var s = new List <JobDAO>(); foreach (var job in ef.GetJobs()) { s.Add(JobMapper.MapToJobDAO(job)); } return(s); }
public static JobExpense MapToJobExpense(JobExpenseDAO jx) { var c = new JobExpense(); c.Id = jx.Id; c.ExpenseID = jx.ExpenseID; c.Expense = ExpenseMapper.MapToExpense(jx.Expense); c.JobID = jx.JobID; c.ScheduleJob = JobMapper.MapToJob(jx.Job); return(c); }
public bool AddJobExpense(JobDAO j, ExpenseDAO ex) { return(ef.AddJobExpense(JobMapper.MapToJob(j), ExpenseMapper.MapToExpense(ex))); }
public bool DeleteJob(JobDAO job) { return(ef.DeleteJob(JobMapper.MapToJob(job))); }
public bool UpdateJob(JobDAO job) { return(ef.UpdateJob(JobMapper.MapToJob(job))); }
public bool AddJob(JobDAO job) { return(ef.AddJob(JobMapper.MapToJob(job))); }