public void SubmitForm(InvestConfigEntity entity, string keyValue) { if (!string.IsNullOrEmpty(keyValue)) { entity.Modify(keyValue); service.Update(entity); } else { entity.Create(); service.Insert(entity); } }
public ActionResult SubmitForm(InvestConfigEntity investConfigEntity, string keyValue) { investConfigApp.SubmitForm(investConfigEntity, keyValue); return(Success("操作成功。")); }
public void Delete(InvestConfigEntity entity) { service.Delete(entity); }