public UnitOfWork(PokebookContext _context, IMapper mapper) { context = _context; Chats = new ChatRepository(context, mapper); Messages = new MessageRepository(context, mapper); UserChats = new UserChatRepository(context, mapper); Users = new UserRepository(context, mapper); Friendships = new FriendshipRepository(context, mapper); Pokemons = new PokemonRepository(context, mapper); PokemonCatches = new PokemonCatchRepository(context, mapper); Types = new TypeRepository(context, mapper); Moves = new MoveRepository(context, mapper); PokemonUsers = new PokemonUserRepository(context, mapper); PokemonTypes = new PokemonTypeRepository(context, mapper); PokemonMoveCatches = new PokemonMoveCatchRepository(context, mapper); PokemonMoves = new PokemonMoveRepository(context, mapper); PokemonCatchDeleted = new PokemonCatchDeletedRepository(context, mapper); }
public PokemonCatchesController(PokebookContext dbc, IMapper m, PokemonCatchRepository repo, IHostingEnvironment hostingEnvironment) : base(dbc, m, repo) { _hostingEnvironment = hostingEnvironment; _dbc = dbc; _m = m; }