public int Insert(DeviceVO vo) { int lastInsertId = 0; try { lastInsertId = b.Insert("FP_Device", b.ConvertColName(vo), b.ConvertValueList(vo)); } catch (Exception ex) { throw ex; } return(lastInsertId); }
public int Update(DeviceVO vo) { int deviceID = 0; try { b.Update("FP_Device", vo.Id.ToString(), b.ConvertColName(vo), b.ConvertValueList(vo)); deviceID = vo.Id; } catch (Exception ex) { throw ex; } return(deviceID); }