public void SubmitForm(BI_ProductInfoEntity entity, string keyValue) { if (string.IsNullOrWhiteSpace(keyValue)) { entity.Create(); entity.F_EnabledMark = true; infoApp.Insert(entity); } else { entity.Modify(keyValue); infoApp.Update(entity); } }
public ActionResult SubmitForm(BI_ProductInfoEntity entity, string keyValue) { app.SubmitForm(entity, keyValue); return(Success("操作成功")); }