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