Ejemplo n.º 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);
        }
Ejemplo n.º 2
0
 public bool AddJobExpense(JobDAO j, ExpenseDAO ex)
 {
     return(ef.AddJobExpense(JobMapper.MapToJob(j), ExpenseMapper.MapToExpense(ex)));
 }
Ejemplo n.º 3
0
 public bool UpdateExpense(ExpenseDAO ex)
 {
     return(ef.UpdateExpense(ExpenseMapper.MapToExpense(ex)));
 }
Ejemplo n.º 4
0
 public bool DeleteExpense(ExpenseDAO ex)
 {
     return(ef.DeleteExpense(ExpenseMapper.MapToExpense(ex)));
 }
Ejemplo n.º 5
0
 public bool AddExpense(ExpenseDAO ex)
 {
     return(ef.AddExpense(ExpenseMapper.MapToExpense(ex)));
 }