public ActionResult Add(CustomerModel model) { var command = new CreateCustomer{CustomerId = model.CustomerId, Name = model.Name, BirthDate = model.BirthDate}; WebsiteApplication.TheCommandService.Execute(command); return View(); }
partial void DeleteCustomerModel(CustomerModel instance);
partial void UpdateCustomerModel(CustomerModel instance);
partial void InsertCustomerModel(CustomerModel instance);
public ActionResult Add() { var customer = new CustomerModel {CustomerId = Guid.NewGuid()}; return View(customer); }