public void SubmitForm(OrderTransferEntity itemsEntity, string keyValue) { if (!string.IsNullOrEmpty(keyValue)) { itemsEntity.Modify(keyValue); service.Update(itemsEntity); } else { itemsEntity.Create(); service.Insert(itemsEntity); } }