/// <summary>
 /// Method to bind Dispatch grid for invoice
 /// </summary>
 /// <param name="request"></param>
 /// <param name="invoiceId"></param>
 /// <returns></returns>
 public IActionResult KendoReadDispatchByInvoice([DataSourceRequest] DataSourceRequest request, long?invoiceId = null)
 {
     if (invoiceId != null)
     {
         return(Json(SelectionList.DispatchListByInvoice(invoiceId).Select(x => new { x.DispatchId, x.DispatchNo, x.DispatchDate }).ToDataSourceResult(request)));
     }
     return(Json(string.Empty));
 }