public void DeleteLibraryQuestionColumn(VLLibraryColumn column) { if (column == null) { throw new ArgumentNullException("column"); } DeleteLibraryQuestionColumn(column.Question, column.ColumnId); }
internal VLLibraryColumn(VLLibraryColumn source) { this.m_question = default(Int32); this.m_columnId = default(Byte); this.m_displayOrder = default(Byte); this.m_attributeFlags = default(Int32); this.m_textsLanguage = source.m_textsLanguage; this.m_columnText = source.m_columnText; }
public VLLibraryColumn CreateLibraryQuestionColumn(Int32 question, string columnText, short textsLanguage = /*DefaultLanguage*/ -2) { VLLibraryColumn column = new VLLibraryColumn(); column.Question = question; column.ColumnText = columnText; return(LibrariesDal.CreateLibraryColumn(this.AccessTokenId, column, textsLanguage)); }
public VLLibraryColumn UpdateLibraryQuestionColumn(VLLibraryColumn column) { if (column == null) { throw new ArgumentNullException("column"); } column.ValidateInstance(); //διαβάζουμε το option απο την βάση μας: var existingItem = LibrariesDal.GetLibraryColumnById(AccessTokenId, column.Question, column.ColumnId, column.TextsLanguage); if (existingItem == null) { throw new VLException(SR.GetString(SR.There_is_no_item_with_id, "Column", column.ColumnId)); } existingItem.ColumnText = column.ColumnText; return(LibrariesDal.UpdateLibraryColumn(AccessTokenId, existingItem)); }