public int Insert(OTFeesRequestDetailVO vo) { int lastInsertId = 0; try { lastInsertId = b.Insert("OT_Fees_Request_Detail", b.ConvertColName(vo), b.ConvertValueList(vo)); } catch (Exception ex) { throw ex; } return(lastInsertId); }
public int Create(OTFeesRequestDetailVO vo) { int id; if (!dao.isExist(vo.Id.ToString())) { id = dao.Insert(vo); } else { id = dao.Update(vo); } return(id); }
public int Update(OTFeesRequestDetailVO vo) { int detailID = 0; try { b.Update("OT_Fees_Request_Detail", vo.Id.ToString(), b.ConvertColName(vo), b.ConvertValueList(vo)); detailID = vo.Id; } catch (Exception ex) { throw ex; } return(detailID); }