/// <summary> /// 插入Video /// </summary> /// <param name="video">Video</param> public int InsertVideo(Video video) { int _id = -1; try { //_daoManager.BeginTransaction(); _id = _videoDao.InsertVideo(video); //_daoManager.CommitTransaction(); } catch (Exception ex) { //_daoManager.RollBackTransaction(); throw ex; } return(_id); }
public void Add(Video video, int directoryId) { videoDao.InsertVideo(video, directoryId); }