public JsonResult FeeRate(FeeRate model) { if (ModelState.IsValid) { if (model.ID.IsEmpty()) { model.ID = GuidHelper.GuidNew(); model.CrUserId = LUser.UserId.ToGuid(); model.UpTime = model.CrTime = DateTime.Now; model.CreateAndFlush(); } else { model.UpTime = DateTime.Now; model.UpUser = LUser.UserName; model.UpdateAndFlush(); } } return(Json(JsonReturn.OK(), JsonRequestBehavior.AllowGet)); }