Esempio n. 1
0
        public void ReplaceTags(Guid entityId, string collectionString)
        {
            var tagIds = collectionString.ParseStringCollection(Guid.Parse).ToList();
            var tags   = _userTagProvider.Get(tagIds);

            _userTagService.Replace(entityId, tagIds);
            _userTagIndex.Update(entityId, tags.Select(t => t.Text));
        }
Esempio n. 2
0
        public ActionResult Edit(ExtendedProfileEditModel model)
        {
            var member = MapToMemberDTO(model);
            var tagIds = model.TagIdsData.ParseStringCollection(Guid.Parse);

            _userTagService.Replace(member.Id, tagIds);
            _intranetMemberService.Update(member);
            return(RedirectToCurrentUmbracoPage());
        }