public static UserFolderData AddUserFolder(int userId, int productId, string folderName, int?parentId) { var row = DB.AddUserFolder(userId, productId, folderName, parentId); int newFolderId = Convert.ToInt32(row["new_folder_id"]); string newName = row["new_folder_name"].ToString(); var ufData = new UserFolderData(newFolderId, folderName, true); return(ufData); }
public UserFolderDataJson(UserFolderData ufd) { this.key = ufd.Id; this.title = ufd.Title; if (ufd.IsEmptyFolder) { this.lazy = false; } this.documentsCount = ufd.DocumentsCount; }