public void SaveMetricType(as_mt_metricTypes item) { try { db.SaveMt_metricType(item); } catch (Exception ex) { RDL.Debug.LogError(ex); } }
public as_mt_metricTypes GetType(int?typeId) { var res = new as_mt_metricTypes(); try { res = db.db.as_mt_metricTypes.ToList().FirstOrDefault(x => x.id == typeId); } catch (Exception ex) { RDL.Debug.LogError(ex); } return(res); }