Example #1
0
 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);
 }
Example #2
0
 public PokemonCatchDeletedController(PokebookContext dbc, IMapper m, PokemonCatchDeletedRepository repo) : base(dbc, m, repo)
 {
 }