コード例 #1
0
        public Response <TagNoteRelationship> AddTagNoteRelationship(int noteId, int tagId)
        {
            var relationshipResponse = _relationshipService.CreateNewTagNoteRelationship(noteId, tagId);

            if (relationshipResponse.Success)
            {
                var tagNoteResponse = _dbHelper.AddObject(relationshipResponse.Data);

                var updateHomelessResponse = UpdateHomelessTag(noteId);

                return(tagNoteResponse);
            }
            else
            {
                return(relationshipResponse);
            }
        }