public PostsController( InstaPostContext context, IPostsRepository postRepo, ILikesRepository likesRepo ) { db = context; this.postRepo = postRepo; this.likesRepo = likesRepo; }
public UsersController( InstaPostContext context, IUsersRepository userRepo, IFollowersRepository followerRepo, IPostsRepository postRepo ) { db = context; this.userRepo = userRepo; this.followerRepo = followerRepo; this.postRepo = postRepo; }
public PostsRepository( InstaPostContext context, IOptions <CloudinaryConfig> cloudinaryConfig ) { this.db = context; CloudinaryConfig cloudConfig = cloudinaryConfig.Value; Account account = new Account( cloudConfig.CloudName, cloudConfig.Key, cloudConfig.Secret ); Cloudinary cloudinary = new Cloudinary(account); this.imgCloud = cloudinary; }
public FollowersRepository(InstaPostContext context) { this.db = context; }
public AdministratorsRepository(InstaPostContext context) { this.db = context; }
public CommentsRepository(InstaPostContext context) { this.db = context; }
public LikesRepository(InstaPostContext context, IPostsRepository postRepo) { this.db = context; this.postRepo = postRepo; }
public LocationsRepository(InstaPostContext context) { this.db = context; }
public BookmarksRepository(InstaPostContext context) { this.db = context; }
public TagsRepository(InstaPostContext context) { this.db = context; }