Ejemplo n.º 1
0
 public PostsController(
     InstaPostContext context,
     IPostsRepository postRepo,
     ILikesRepository likesRepo
     )
 {
     db             = context;
     this.postRepo  = postRepo;
     this.likesRepo = likesRepo;
 }
Ejemplo n.º 2
0
 public UsersController(
     InstaPostContext context,
     IUsersRepository userRepo,
     IFollowersRepository followerRepo,
     IPostsRepository postRepo
     )
 {
     db                = context;
     this.userRepo     = userRepo;
     this.followerRepo = followerRepo;
     this.postRepo     = postRepo;
 }
Ejemplo n.º 3
0
        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;
        }
Ejemplo n.º 4
0
 public FollowersRepository(InstaPostContext context)
 {
     this.db = context;
 }
 public AdministratorsRepository(InstaPostContext context)
 {
     this.db = context;
 }
Ejemplo n.º 6
0
 public CommentsRepository(InstaPostContext context)
 {
     this.db = context;
 }
Ejemplo n.º 7
0
 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;
 }
Ejemplo n.º 10
0
 public TagsRepository(InstaPostContext context)
 {
     this.db = context;
 }