﻿using Demo.Data.SqlCodeFirst.Base;
using Demo.Entities.Entities;

namespace Demo.Data.SqlCodeFirst
{
    public class SubCategoryRepository : BaseRepository<SubCategory> 
    {
       // public override ICollection<SubCategory> GetAll(Func<SubCategory, bool> predicate = null)
       //{
       //    using (var context = new JMCDbContext())
       //    {
       //        if (predicate != null)
       //        {
       //            return context.SubCategories.Include("Category").Where(predicate).ToList();
       //        }

       //        return context.SubCategories.Include("Category").ToList();
       //    }
       //}
    }
}