public int InsertOrderMasterStatus(OrderMasterStatus OMS) { try { return _iordertempreturnlistdao.InsertOrderMasterStatus(OMS); } catch (Exception ex) { throw new Exception(" ReturnMasterMgr-->InsertOrderMasterStatus-->" + ex.Message, ex); } }
public int InsertOrderMasterStatus(OrderMasterStatus OMS) { StringBuilder sql = new StringBuilder(); try { sql.AppendFormat(@" insert into order_master_status(serial_id,order_id,order_status,status_description,status_ipfrom,status_createdate)"); sql.AppendFormat(@" values('{0}','{1}','{2}','{3}','{4}','{5}')", OMS.serial_id, OMS.order_id, OMS.order_status, OMS.status_description, OMS.status_ipfrom, OMS.status_createdate); return _accessMySql.execCommand(sql.ToString()); } catch (Exception ex) { throw new Exception("ReturnMasterDao-->InsertOrderMasterStatus-->" + ex.Message + "sql:" + sql.ToString(), ex); } }