Exemplo n.º 1
0
        public IActionResult UnsettledOrdersPartial()
        {
            var model = salesOrderService.Get(x => EF.Functions.DateDiffDay(x.DateCreated, DateTime.Now) >= 15 && x.AmountPaid < x.SalesOrderDetails.Sum(m => (m.PurchaseAmount ?? 0)));

            return(PartialView(model));
        }
        public async Task <IViewComponentResult> InvokeAsync()
        {
            var salesOrder = salesOrderService.Get();

            return(await Task.FromResult(View("~/views/SalesOrder/SalesOrderGrid.cshtml", salesOrder)));
        }