/// <summary> /// 返回查询的支付订单 /// </summary> /// <param name="fromDateStr">开始日期</param> /// <param name="toDateStr">结束日期</param> /// <param name="payService"></param> /// <returns></returns> public IActionResult RechargeOrders(string fromDateStr, string toDateStr, [FromServices] IPayService payService) { ToolsData.DataFromToOfStrToDateTime(fromDateStr, toDateStr, out DateTime fromDate, out DateTime toDate); //IList<PayOrder> rechargeOrders = managerPlayer.GetPayOrderList(fromDate, toDate); IList <PayOrder> rechargeOrders = payService.GetPayOrderList(fromDate, toDate); return(View("rechargeOrders", rechargeOrders)); }
public IActionResult RedPackges(string fromDateStr, string toDateStr, [FromServices] IPayService payService) { ToolsData.DataFromToOfStrToDateTime(fromDateStr, toDateStr, out DateTime fromDate, out DateTime toDate); IList <RedPack> redPackges = payService.GetRedPackgeList(fromDate, toDate); //IList<RedPack> redPackges = managerPlayer.GetRedPackgeList(fromDate, toDate); return(View("redPackges", redPackges)); }