public ActionResult GetAllExpenseInvoices() { if (!User.Identity.IsAuthenticated) { return(RedirectToAction("Login", "Account")); } var providers = new ExpenseInvoicesSC().GetAllExpenseInvoices(); return(GetJsonNetResult(providers)); }
// GET: ExpenseInvoices public ActionResult ExpenseList() { if (!User.Identity.IsAuthenticated) { return(RedirectToAction("Login", "Account")); } var backendData = new ExpenseInvoicesSC().GetExpenseListBackendData(); ViewBag.backendData = SerializeJSONData(backendData); return(View()); }
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)); }
public ActionResult GetExpenseInvoiceByID(long expenseID) { var providers = new ExpenseInvoicesSC().GetExpenseInvoiceByID(expenseID); return(GetJsonNetResult(providers)); }