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); }
public ActionResult AddEntry() { var model = new AddEntryViewModel(); return View(model); }