コード例 #1
0
        public List <JobDAO> GetJobs()
        {
            var s = new List <JobDAO>();

            foreach (var job in ef.GetJobs())
            {
                s.Add(JobMapper.MapToJobDAO(job));
            }
            return(s);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
 public bool AddJobExpense(JobDAO j, ExpenseDAO ex)
 {
     return(ef.AddJobExpense(JobMapper.MapToJob(j), ExpenseMapper.MapToExpense(ex)));
 }
コード例 #4
0
 public bool DeleteJob(JobDAO job)
 {
     return(ef.DeleteJob(JobMapper.MapToJob(job)));
 }
コード例 #5
0
 public bool UpdateJob(JobDAO job)
 {
     return(ef.UpdateJob(JobMapper.MapToJob(job)));
 }
コード例 #6
0
 public bool AddJob(JobDAO job)
 {
     return(ef.AddJob(JobMapper.MapToJob(job)));
 }