Esempio n. 1
0
        public ActionResult Index(BillViewModel InputData)
        {
            ViewData["Category"] = SetCategorySelectList();
            AccountBookService accountBook = new AccountBookService();

            accountBook.Insert(InputData);

            return(View(InputData));
        }
Esempio n. 2
0
        // 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);
 }
Esempio n. 4
0
        public AccountBookController()
        {
            var unitOfWork = new EFUnitOfWork();

            _accountBookSvc = new AccountBookService(unitOfWork);
        }
Esempio n. 5
0
 public HomeController()
 {
     _accountBookSvc = new AccountBookService();
 }
Esempio n. 6
0
 public MoneyBookController()
 {
     _unitOfWork         = new UnitOfWork();
     _accountBookService = new AccountBookService(_unitOfWork);
 }
Esempio n. 7
0
 public HomeController()
 {
     this.accountBooksService = new AccountBookService();
 }
 public ExpenseIncomeController()
 {
     _unitOfWork         = new UnitOfWork();
     _accountBookService = new AccountBookService(_unitOfWork);
     _classifyService    = new ClassifyService(_unitOfWork);
 }
Esempio n. 9
0
        public PartialController()
        {
            var unitOfWork = new EFUnitOfWork();

            _accServ = new AccountBookService(unitOfWork);
        }
Esempio n. 10
0
        public ActionResult Bill()
        {
            AccountBookService accountBook = new AccountBookService();

            return(View(accountBook.Get()));
        }
Esempio n. 11
0
        public HomeController()
        {
            var unitOfWork = new EFUnitOfWork();

            aServ = new AccountBookService(unitOfWork);
        }
Esempio n. 12
0
 public HomeController()
 {
     _unitOfWork         = new UnitOfWork();
     _AccountBookService = new AccountBookService(_unitOfWork);
     _LogService         = new LogService(_unitOfWork);
 }
 public AccountBooksController()
 {
     _unitOfWork = new UnitOfWork();
     _service    = new AccountBookService(_unitOfWork);
 }