private DicIcfemRequestRelation CreateIcfem(RfTmIcfem oldIcfem, int requestId) { try { var icfemId = GetObjectId <DicICFEM>(oldIcfem.LcfemId); if (icfemId == null || icfemId == 0) { return(null); } var icfem = new DicIcfemRequestRelation { DicIcfemId = icfemId.Value, RequestId = requestId }; return(icfem); } catch (Exception) { return(null); } }
private DicColorTZRequestRelation CreateColor(RfTmIcfem oldColor, int requestId) { try { var colorId = GetObjectId <DicColorTZ>(oldColor.LcfemId); if (colorId == null || colorId == 0) { return(null); } var color = new DicColorTZRequestRelation { ColorTzId = colorId.Value, RequestId = requestId }; return(color); } catch (Exception) { return(null); } }