Exemple #1
0
        public List <JobDAO> GetJobs()
        {
            var s = new List <JobDAO>();

            foreach (var job in ef.GetJobs())
            {
                s.Add(JobMapper.MapToJobDAO(job));
            }
            return(s);
        }
Exemple #2
0
        public static JobExpenseDAO MapToJobExpenseDAO(JobExpense jx)
        {
            var c = new JobExpenseDAO();

            c.Id        = jx.Id;
            c.ExpenseID = jx.ExpenseID;
            c.Expense   = ExpenseMapper.MapToExpenseDAO(jx.Expense);
            c.JobID     = jx.JobID;
            c.Job       = JobMapper.MapToJobDAO(jx.ScheduleJob);

            return(c);
        }