/// <summary>
        /// Deletes a composite symbol and it's rows in
        /// CompositeOf table. Takes a CompositeSymbol 
        /// model as inn parameter
        /// </summary>
        /// <param name="compModel"></param>
        /// <returns>true or false depending on success</returns>
        public bool DeleteCompositeSymbol(CompositeSymbol compModel)
        {
            if (compModel == null)
                return false;

            CompositeOfDAL compOf = new CompositeOfDAL();
            var ok = compOf.DeleteByCompositeSymbol(compModel);
            if (ok)
            {
                CompositeSymbols compSymbol = GetExactCompositeRowByID(compModel.compId);
                return DeleteCompositeSymbolByRow(compSymbol);
            }
            return false;
        }
예제 #2
0
 public bool DeleteByCompositeSymbol(CompositeSymbol composit)
 {
     var CompositeOfDAL = new CompositeOfDAL(testing);
     return CompositeOfDAL.DeleteByCompositeSymbol(composit);
 }