Exemplo n.º 1
0
        public int RemoveContentFormCategoryLevel1(string CodeContent, string CodeCategoryLevel1)
        {
            try
            {
                DatabaseDA aDatabaseDA = new DatabaseDA();

                List <Contents_CategoryLevel1> aList = aDatabaseDA.Contents_CategoryLevel1.Where(p => p.CodeContents == CodeContent).Where(p => p.CodeCategoryLevel1 == CodeCategoryLevel1).ToList();
                return(aDatabaseDA.Contents_CategoryLevel1.RemoveRange(aList).Count());
            }
            catch (Exception ex)
            {
                //return null;
                throw new Exception(String.Format("ContentsBO.RemoveContentFormCategoryLevel1: {0}", ex.Message));
            }
        }