Exemple #1
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);
        }
Exemple #2
0
 public bool AddJobExpense(JobDAO j, ExpenseDAO ex)
 {
     return(ef.AddJobExpense(JobMapper.MapToJob(j), ExpenseMapper.MapToExpense(ex)));
 }
Exemple #3
0
 public bool UpdateJob(JobDAO job)
 {
     return(ef.UpdateJob(JobMapper.MapToJob(job)));
 }
Exemple #4
0
 public bool DeleteJob(JobDAO job)
 {
     return(ef.DeleteJob(JobMapper.MapToJob(job)));
 }
Exemple #5
0
 public bool AddJob(JobDAO job)
 {
     return(ef.AddJob(JobMapper.MapToJob(job)));
 }