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