コード例 #1
0
        public JsonResult InsertFileTags(IEnumerable <String> tags, String virtualPath)
        {
            DocumentsOperations docOps = new DocumentsOperations();

            if (tags != null && tags.Count() > 0)
            {
                docOps.InsertTagsByFileID(docOps.GetFileIDByVirtualPath(virtualPath), tags);
            }
            else
            {
                docOps.DeleteTagsByFileID(docOps.GetFileIDByVirtualPath(virtualPath));
            }
            return(new JsonResult()
            {
                Data = ""
            });
        }