public CategoryController() { _categoryRepository = new CategoryRepository(Context); _gifRepository = new GifRepository(Context); _favoriteRepository = new FavoriteRepository(Context); color = new Color(); }
public GifController(ApplicationUserManager userManager) { _gifRepository = new GifRepository(Context); _categoryRepository = new CategoryRepository(Context); _userRepository = new UserRepository(Context); _favoriteRepository = new FavoriteRepository(Context); _roleRepository = new RoleRepository(Context); _AppUserManager = userManager; }
public AccountController(ApplicationUserManager userManager, ApplicationSignInManager signInManager, IAuthenticationManager authManager, UserRepository userRepository, GifRepository gifRepository, FavoriteRepository favoriteRepository, RoleRepository roleRepository) { _userManager = userManager; _signInManager = signInManager; _authManager = authManager; _userRepository = userRepository; _gifRepository = gifRepository; _favoriteRepository = favoriteRepository; _roleRepository = roleRepository; }