public static int DelCGKpellert(uint id) { try { int i = CGKDAL.delPalletById((int)id, CGK_pallert); return(i); } catch (Exception ex) { throw ex; } }
public static List <CGKpellert> GetCGKpellertModelAll() { try { DataSet ds = CGKDAL.getDatasetByTable(CGK_pallert); if (ds != null && ds.Tables.Count > 0 && ds.Tables[0].Rows.Count > 0) { return(DataTableToCGKpellert(ds.Tables[0])); } return(null); } catch (Exception ex) { throw ex; } }
public static CGKpellert GetCGKpellertModel(int id) { try { DataSet ds = CGKDAL.getDatasetByIdAndTable(id, CGK_pallert); if (ds != null && ds.Tables.Count > 0 && ds.Tables[0].Rows.Count > 0) { return(DataTableToCGKpellert(ds.Tables[0])[0]); } return(null); } catch (Exception ex) { throw ex; } }