Ejemplo n.º 1
0
        public ActionResult CreateGroup(CreateGroupVM group)
        {
            if (ModelState.IsValid)
            {
                Group newGroup = Mapper.Map <Group>(group);

                ADDomain domain = new ADDomain();
                domain.CreateGroup(newGroup);

                TempData["group_created_successfully"] = newGroup.GroupName + " has been created successfully!";
                return(RedirectToAction("ViewGroup", new { group = newGroup.GroupName }));
            }

            return(View());
        }