Example #1
0
 public ActionResult AddEntry(AddEntryViewModel model)
 {
     if (!this.ModelState.IsValid)
     {
         return View(model);
     }
     WorkerServices.AddEntry(model);
     return Redirect("/Registry/");
 }
 public void AddEntry(AddEntryViewModel model)
 {
     var command = new RegisterCompanyCommand(model.CompanyName, model.VatIndex);
     Bus.Send(command);
 }
Example #3
0
 public ActionResult AddEntry()
 {
     var model = new AddEntryViewModel();
     return View(model);
 }