/// <summary> /// AlbumRepository Constructor /// </summary> public AlbumRepository() { _albumInterface = new AlbumService(); _photoInterface = new PhotoService(); _userInterface = new UserService(); _albumDetailsList = new List <AlbumDetails>(); }
public PhotosController(ApplicationDbContext context, IPhotoInterface userInterface, UserManager <ApplicationUser> userManager, IHttpContextAccessor _httpContext) { //dependacy injection this._httpContext = _httpContext; _userManager = userManager; _context = context; _userId = this._userManager.GetUserId(this._httpContext.HttpContext.User); _userService = userInterface; }
public PhotosController(IPhotoInterface photoInterface, ILogger <PhotosController> logger, IConfiguration configuration) { _configuration = configuration; _photoInterface = photoInterface; _logger = logger; }
public PhotosController() { _photoInterface = new PhotoService(); }