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)); }
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()); }