Esempio n. 1
0
 public PostsController(ApplicationDbContext context, ILikeRespository likeRespository, IDislikeRepository dislikeRepository, IToastNotification toastNotification)
 {
     _context            = context;
     _likeRespository    = likeRespository;
     _dislikeRespository = dislikeRepository;
     _toastNotification  = toastNotification;
 }
Esempio n. 2
0
 public HomeController(ApplicationDbContext context, ILikeRespository likeRespository, IDislikeRepository dislikeRepository)
 {
     _context            = context;
     _likeRespository    = likeRespository;
     _dislikeRespository = dislikeRepository;
 }