コード例 #1
0
 public void AssignOutgoingInvoiceToJobOrder(AssignOutgoingInvoiceToJobOrderViewModel model)
 {
     var jobOrderId = (from j in Database.JobOrders
                       where j.Number == model.JobOrderNumber
                       select j.OriginalId).Single();
     var command = new AssociateOutgoingInvoiceToJobOrderCommand(model.InvoiceOriginalId, jobOrderId);
     Bus.Send(command);
 }
コード例 #2
0
ファイル: InvoiceController.cs プロジェクト: pachinko/naa4e
 public ActionResult AssignOutgoingInvoiceToJobOrder(AssignOutgoingInvoiceToJobOrderViewModel model)
 {
     if (!this.ModelState.IsValid)
     {
         return View(model);
     }
     WorkerServices.AssignOutgoingInvoiceToJobOrder(model);
     return Redirect("/Accountancy/");
 }