コード例 #1
0
        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));
        }
コード例 #2
0
 public VLLibraryColumn GetLibraryQuestionColumnById(Int32 question, byte columnId, short textsLanguage = /*DefaultLanguage*/ -2)
 {
     return(LibrariesDal.GetLibraryColumnById(AccessTokenId, question, columnId, textsLanguage));
 }