public T GetOne(Expression <Func <T, bool> > filter) { using var context = new ShopContext(); return(context.Set <T>().SingleOrDefault()); }
public T GetOne(Expression <Func <T, bool> > filter) { using var context = new ShopContext(); return(context.Set <T>().SingleOrDefault()); }