Example #1
0
 public CategoryController()
 {
     _categoryRepository = new CategoryRepository(Context);
     _gifRepository      = new GifRepository(Context);
     _favoriteRepository = new FavoriteRepository(Context);
     color = new Color();
 }
Example #2
0
 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;
 }
Example #3
0
 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;
 }