public void Delete(Core.Business.ExhibitionInstrument exhibitionInstrument) { SqlServerUtility sql = new SqlServerUtility(); sql.AddParameter("@Id", SqlDbType.UniqueIdentifier, exhibitionInstrument.Id); sql.ExecuteSP("usp_DeleteExhibitionInstrument"); }
public void Update(Core.Business.ExhibitionInstrument exhibitionInstrument) { SqlServerUtility sql = new SqlServerUtility(); sql.AddParameter("@InstrumentID", SqlDbType.UniqueIdentifier, exhibitionInstrument.InstrumentID); sql.AddParameter("@ExhibitionDate", SqlDbType.DateTime, exhibitionInstrument.ExhibitionDate); sql.AddParameter("@SequenceNumber", SqlDbType.Int, exhibitionInstrument.SequenceNumber); sql.AddParameter("@IsShowinHomePage", SqlDbType.Int, exhibitionInstrument.IsShowinHomePage); sql.AddParameter("@Id", SqlDbType.UniqueIdentifier, exhibitionInstrument.Id); sql.ExecuteSP("usp_UpdateExhibitionInstrument"); }