Beispiel #1
0
        public ActionResult CreateGroup(CreateGroupPageView model)
        {
            if (!ModelState.IsValid)
                return View(model);

            var newGroup = model.NewGroup;
            groupsManager.Create(Mapper.Map<Group, GroupCreateViewModel>(newGroup));

            return RedirectToRoute("GetGroups");
        }
Beispiel #2
0
        public ActionResult CreateGroup(CreateGroupPageView model)
        {
            if (!ModelState.IsValid)
            {
                return(View(model));
            }

            var newGroup = model.NewGroup;

            groupsManager.Create(Mapper.Map <Group, GroupCreateViewModel>(newGroup));

            return(RedirectToRoute("GetGroups"));
        }