public FoodItemRepository( RestyContext context, IMapper mapper) : base(context, mapper) { }
protected BaseRepository(RestyContext context, IMapper mapper) { Mapper = mapper; _context = context; _dbSet = context.Set <TEntity>(); }
public UnitOfWork(RestyContext dbContext) { _dbContext = dbContext ?? throw new ArgumentNullException(nameof(dbContext)); }