/// <summary> /// updates tags of an issue /// </summary> /// <param name="issueId">issue id</param> /// <param name="addedTags">list of new tags which were added to issue (if tag id == 0 then its a not existing tag which will be created)</param> /// <param name="deletedTags">list of tags which have to be removed from issue</param> /// <param name="userId">user who is performing this operation</param> public void UpdateIsseuTags(int issueId, List <TagModel> addedTags, List <TagModel> deletedTags, int userId) { TagModel tm = new TagModel(); TagOp.AddTagsToIssue(tm.ToEntityList(addedTags), issueId, userId); TagOp.RemoveTagsFromIssue(tm.ToEntityList(deletedTags.Where(x => x.Id > 0).ToList()), issueId, userId); }