예제 #1
0
        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);
예제 #5
0
        public ActionResult Add()
        {
            var customer = new CustomerModel {CustomerId = Guid.NewGuid()};

            return View(customer);
        }