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