public ProviderNewsController(IApproveNewsProviderServiceCommand approveProviderServiceCommand,
                               IDeleteNewsProviderServiceCommand deleteNewsProviderServiceCommand,
                               IGetAllPagingProviderNewsOfProviderQuery getAllPagingProviderNewsOfProviderQuery,
                               IGetAllPagingProviderNewsServiceQuery getAllPagingProviderNewsServiceQuery,
                               IGetByIdProviderNewsServiceQuery getByIdProviderNewsServiceQuery,
                               IRegisterNewsProviderServiceCommand registerNewsProviderServiceCommand,
                               IRejectNewsProviderServiceCommand rejectNewsProviderServiceCommand,
                               IUpdateNewsProviderServiceCommand updateNewsProviderServiceCommand,
                               IConfirmNewsProviderService confirmNewsProviderServiceCommand)
 {
     _approveProviderServiceCommand           = approveProviderServiceCommand;
     _deleteNewsProviderServiceCommand        = deleteNewsProviderServiceCommand;
     _getAllPagingProviderNewsOfProviderQuery = getAllPagingProviderNewsOfProviderQuery;
     _getAllPagingProviderNewsServiceQuery    = getAllPagingProviderNewsServiceQuery;
     _getByIdProviderNewsServiceQuery         = getByIdProviderNewsServiceQuery;
     _registerNewsProviderServiceCommand      = registerNewsProviderServiceCommand;
     _rejectNewsProviderServiceCommand        = rejectNewsProviderServiceCommand;
     _updateNewsProviderServiceCommand        = updateNewsProviderServiceCommand;
     _confirmNewsProviderServiceCommand       = confirmNewsProviderServiceCommand;
 }
 public RecommendService(
     IRepository <Provider, Guid> providerRepository,
     IRepository <ProviderFollowing, int> providerFollowingRepository,
     IRepository <ProviderNew, int> providerNewRepository,
     IRepository <Service, Guid> serviceRepository,
     IRepository <Model.Entities.ServiceModel.ProviderServiceModel.ProviderService, int> providerServiceRepository,
     IGetByIdProviderNewsServiceQuery getByIdProviderNewService,
     IGetPostServiceByIdQuery getPostServiceByIdQuery,
     UserManager <AppUser> userManager,
     IOptions <EmailConfigModel> configEmail)
 {
     _getByIdProviderNewService   = getByIdProviderNewService;
     _providerFollowingRepository = providerFollowingRepository;
     _providerNewRepository       = providerNewRepository;
     _providerRepository          = providerRepository;
     _providerServiceRepository   = providerServiceRepository;
     _serviceRepository           = serviceRepository;
     _getPostServiceByIdQuery     = getPostServiceByIdQuery;
     _userManager = userManager;
     _configEmail = configEmail;
 }