public ActionResult Index(BillViewModel InputData) { ViewData["Category"] = SetCategorySelectList(); AccountBookService accountBook = new AccountBookService(); accountBook.Insert(InputData); return(View(InputData)); }
// GET: Spending public ActionResult Index() { SpendingListViewModels models = new SpendingListViewModels { spending = new SpendingViewModels(), SpendingList = AccountBookService.GetAccountBookList() }; List <SelectListItem> mySelectItemList = new List <SelectListItem>(); mySelectItemList.AddRange(new[] { new SelectListItem() { Text = "支出", Value = "0" }, new SelectListItem() { Text = "收支", Value = "1" } }); return(View(models)); }
public HomeController() { _unitOfWork = new SkillTreeHomeWorkUnitOfWork(); _accountBookService = new AccountBookService(_unitOfWork); }
public AccountBookController() { var unitOfWork = new EFUnitOfWork(); _accountBookSvc = new AccountBookService(unitOfWork); }
public HomeController() { _accountBookSvc = new AccountBookService(); }
public MoneyBookController() { _unitOfWork = new UnitOfWork(); _accountBookService = new AccountBookService(_unitOfWork); }
public HomeController() { this.accountBooksService = new AccountBookService(); }
public ExpenseIncomeController() { _unitOfWork = new UnitOfWork(); _accountBookService = new AccountBookService(_unitOfWork); _classifyService = new ClassifyService(_unitOfWork); }
public PartialController() { var unitOfWork = new EFUnitOfWork(); _accServ = new AccountBookService(unitOfWork); }
public ActionResult Bill() { AccountBookService accountBook = new AccountBookService(); return(View(accountBook.Get())); }
public HomeController() { var unitOfWork = new EFUnitOfWork(); aServ = new AccountBookService(unitOfWork); }
public HomeController() { _unitOfWork = new UnitOfWork(); _AccountBookService = new AccountBookService(_unitOfWork); _LogService = new LogService(_unitOfWork); }
public AccountBooksController() { _unitOfWork = new UnitOfWork(); _service = new AccountBookService(_unitOfWork); }