コード例 #1
0
        public ActionResult GetAllExpenseInvoices()
        {
            if (!User.Identity.IsAuthenticated)
            {
                return(RedirectToAction("Login", "Account"));
            }

            var providers = new ExpenseInvoicesSC().GetAllExpenseInvoices();

            return(GetJsonNetResult(providers));
        }
コード例 #2
0
        // GET: ExpenseInvoices
        public ActionResult ExpenseList()
        {
            if (!User.Identity.IsAuthenticated)
            {
                return(RedirectToAction("Login", "Account"));
            }

            var backendData = new ExpenseInvoicesSC().GetExpenseListBackendData();

            ViewBag.backendData = SerializeJSONData(backendData);

            return(View());
        }
コード例 #3
0
        public ActionResult AddNewExpenseInvoice(string concept, long providerID, decimal amount, string currencyCode, decimal exchangeRate)
        {
            var result = new ExpenseInvoicesSC().AddNewExpenseInvoice(concept, providerID, amount, currencyCode, exchangeRate);

            return(GetJsonNetResult(result));
        }
コード例 #4
0
        public ActionResult GetExpenseInvoiceByID(long expenseID)
        {
            var providers = new ExpenseInvoicesSC().GetExpenseInvoiceByID(expenseID);

            return(GetJsonNetResult(providers));
        }