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