コード例 #1
0
 public ActionResult Expenses()
 {
     try
     {
         ExpensesVM           vm    = new ExpensesVM();
         List <ExpenseTypeVM> types = new List <ExpenseTypeVM>();
         var result = _expenseTypeRepository.GetAll();
         AutoMapper.Mapper.Map(result, types);
         vm.Types = types;
         return(View(vm));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
コード例 #2
0
 public AddExpenseWindow()
 {
     InitializeComponent();
     Model         = new Expense();
     _expenseTypes = ExpenseTypeRepository.GetAll();
 }
コード例 #3
0
 public IEnumerable <ExpenseType> Get()
 {
     return(ExpenseTypeRepository.GetAll());
 }