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; } }
public AddExpenseWindow() { InitializeComponent(); Model = new Expense(); _expenseTypes = ExpenseTypeRepository.GetAll(); }
public IEnumerable <ExpenseType> Get() { return(ExpenseTypeRepository.GetAll()); }