public CreateProductTypeViewModel Create() { CreateProductTypeViewModel ViewModel = new CreateProductTypeViewModel(); ViewModel.createProductTypesModel = new CreateProductTypesModel(); return(ViewModel); }
public ActionResult Create(CreateProductTypeViewModel viewModel) { createProductTypesCommand.Execute(viewModel.createProductTypesModel); return(RedirectToAction("Index")); }