Пример #1
0
        public ActionResult Edit(ProfileGroupViewModel model)
        {
            if (ModelState.IsValid)
            {
                var group = Mapper.Map <ProfileGroup>(model);
                group.UpdatedBy = User.Identity.Name;
                _profileGroupRepository.Save(group);
                return(RedirectToAction("Index"));
            }

            return(View("CreateEdit", model));
        }
 public void Save(ProfileGroup location)
 {
     _internalRepository.Save(location);
     _lazyCache.ClearProfileGroups();
 }