コード例 #1
0
        public ActionResult Create(CreateDesignersViewModel requestedViewModel)
        {
            if (ModelState.IsValid)
            {
                FurnitureService.CreateDesigner(requestedViewModel.DesignerForm.FirstName, requestedViewModel.DesignerForm.LastName);

                return(RedirectToAction("Index"));
            }

            return(View(requestedViewModel));
        }