public async Task <IActionResult> GetCurrency() { // 1-2.系統在Get Action[Purchase/GetCurrency]讀取幣別。 List <CurrencyViewModel> lCVM = await IAR.GetCurrency(); // 1-3.系統回傳Json(1-2讀取值)。 return(Json(lCVM)); }
public async Task <IActionResult> GetCurrencyAndPurchase(string PurchaseId) { // 1-2.系統在Get Action[Purchase/GetCurrencyAndPurchase]讀取幣別。 List <CurrencyViewModel> lCVM = await IAR.GetCurrency(); // 1-3.系統在Get Action[Purchase/GetCurrencyAndPurchase]讀取進貨單。 PurchaseListViewModel plvm = await IAR.GetPurchase(PurchaseId); // 1-4.系統回傳Json(new {Currency=1-2讀取值, Purchase=1-3讀取值})。 return(Json(new { Currency = lCVM, Purchase = plvm })); }