private bool tryPost(ref Model.Piecearchive model, out string errMsg) { errMsg = ""; bool re = false; model.Creater = this.auth.UserId; model.CreatedDate = DateTime.Now; if (PieceManager.ArchivePiece(ref model, out errMsg)) { re = true; } return(re); }