public IActionResult TenderTransactionPartial(SalesOrderVM model)
        {
            model.Cheques = chequeService.Get();
            if (!ModelState.IsValid)
            {
                return(PartialView("TenderTransactionModalPartial", model));
            }
            salesOrderService.Update(model);
            model.isSuccess = true;

            return(PartialView("TenderTransactionModalPartial", model));
        }
Beispiel #2
0
 public async Task <IActionResult> Get(int id)
 => await GetResponse(async (userId) =>
                      new ApiResponseViewModel(true, "Get Cheque Successfully", await _service.Get(id)));
 public async Task <IViewComponentResult> InvokeAsync(Func <Data.Models.Cheques, bool> filter = null)
 {
     return(await Task.FromResult(View("~/Views/Cheques/ChequeGridView.cshtml", chequeService.Get(filter))));
 }