public int UpdateDutyInfoList(DataSet dutyInfoList) { int rowsAffected = 0; using(DutyInfoDA dutyInfoDA = new DutyInfoDA()) { rowsAffected = dutyInfoDA.UpdateDutyInfo(dutyInfoList); } return rowsAffected; }
public int UpdateDutyInfo(DateTime getHisDutyDate,bool isToLoadCurDuty) { using ( DutyInfoDA dutyInfo = new DutyInfoDA() ) { return dutyInfo.UpdateDutyInfo(getHisDutyDate,isToLoadCurDuty); } }