public object GetAddEdit(Guid?ID = null, Guid?LUTableID = null) { using (LURowService luRowService = new LURowService()) { using (LUTableService luTableService = new LUTableService()) { sysBpmsLURow lURow = !ID.HasValue ? new sysBpmsLURow().Update(LUTableID.Value, "", (luRowService.MaxCodeOfByLUTableID(LUTableID.Value) + 1).ToStringObj(), luRowService.MaxOrderByLUTableID(LUTableID.Value) + 1, false, true) : luRowService.GetInfo(ID.Value); return(new LURowDTO(lURow)); } } }