Example #1
0
        public List <ExpenseDAO> GetExpenses()
        {
            var s = new List <ExpenseDAO>();

            foreach (var ex in ef.GetExpenses())
            {
                s.Add(ExpenseMapper.MapToExpenseDAO(ex));
            }
            return(s);
        }
Example #2
0
 public bool AddJobExpense(JobDAO j, ExpenseDAO ex)
 {
     return(ef.AddJobExpense(JobMapper.MapToJob(j), ExpenseMapper.MapToExpense(ex)));
 }
Example #3
0
 public bool DeleteExpense(ExpenseDAO ex)
 {
     return(ef.DeleteExpense(ExpenseMapper.MapToExpense(ex)));
 }
Example #4
0
 public bool UpdateExpense(ExpenseDAO ex)
 {
     return(ef.UpdateExpense(ExpenseMapper.MapToExpense(ex)));
 }
Example #5
0
 public bool AddExpense(ExpenseDAO ex)
 {
     return(ef.AddExpense(ExpenseMapper.MapToExpense(ex)));
 }