public void SubmitForm(BudgetProgressEntity budgetEntity, string keyValue) { if (!string.IsNullOrEmpty(keyValue)) { budgetEntity.Modify(keyValue); service.Update(budgetEntity); } else { budgetEntity.Create(); service.Insert(budgetEntity); } }
public ActionResult SubmitForm(BudgetProgressEntity budgetEntity, string keyValue) { budgetApp.SubmitForm(budgetEntity, keyValue); return(Success("操作成功。")); }