Esempio n. 1
0
 public ActionResult Issue(IssueViewModel model)
 {
     if (!this.ModelState.IsValid)
     {
         return View(model);
     }
     WorkerServices.Issue(model);
     return Redirect("/Accountancy/");
 }
 public void Issue(IssueViewModel model)
 {
     var command = new IssueInvoiceCommand(
         model.Date,
         model.Amount,
         model.Taxes,
         model.TotalPrice,
         model.Description,
         model.PaymentTerms,
         model.PurchaseOrderNumber,
         model.Customer.OriginalId,
         model.Customer.Name,
         string.Empty,
         string.Empty,
         string.Empty,
         string.Empty,
         string.Empty,
         string.Empty
         );
     Bus.Send(command);
 }
 public IssueViewModel GetIssueViewModel()
 {
     var model = new IssueViewModel();
     model.Date = DateTime.Now;
     return model;
 }