public List <Section> GetByFilter(Expression <Func <Section, bool> >?filter = null)
 {
     try
     {
         return(_iSectionDal.GetList(filter));
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }
示例#2
0
 public List <Section> GetByArticleId(int articleId)
 {
     return(_sectionDal.GetList(v => v.ArticleId == articleId).ToList());
 }