Exemple #1
0
        public ActionResult Create([Bind(Include = "Name")] ComponentTypeVM componentTypeVM)
        {
            if (ModelState.IsValid)
            {
                ComponentTypeDTO componentTypeDTO = Mapper.Map <ComponentTypeDTO>(componentTypeVM);
                ComponentTypeService.Add(componentTypeDTO);

                return(RedirectToAction("Index"));
            }

            return(View());
        }