private bool tryPost(ref Bill model, out string errMsg) { errMsg = ""; bool re = false; model.Oiler = this.auth.UserId; model.Time = System.DateTime.Now; model.Creater = this.auth.UserId; model.CreatedDate = System.DateTime.Now; model.Modifier = this.auth.UserId; model.ModifiedDate = System.DateTime.Now; if (BillManager.AddBill(ref model, out errMsg)) { re = true; } return(re); }