예제 #1
0
 public NoticiasController(INoticiaRepositorio noticiaRepositorio,
                           IMapper mapper,
                           INotificador notificador,
                           INoticiaService noticiaService,
                           IUser user) : base(notificador, user)
 {
     _noticiaRepositorio = noticiaRepositorio;
     _mapper             = mapper;
     _noticiaService     = noticiaService;
 }
예제 #2
0
 public PapeisController(IUnitOfWork unitOfWork,
                         IFundamentoService fundamentoService,
                         IHistoricoService historicoService,
                         ILogger <PapeisController> logger,
                         IMapper mapper,
                         INoticiaService noticiaService)
 {
     _unitOfWork        = unitOfWork ?? throw new ArgumentNullException(nameof(unitOfWork));
     _fundamentoService = fundamentoService ?? throw new ArgumentNullException(nameof(fundamentoService));
     _historicoService  = historicoService ?? throw new ArgumentNullException(nameof(historicoService));
     _logger            = logger ?? throw new ArgumentNullException(nameof(logger));
     _mapper            = mapper ?? throw new ArgumentNullException(nameof(mapper));
     _noticiaService    = noticiaService ?? throw new ArgumentNullException(nameof(noticiaService));
 }
예제 #3
0
 public HomeController(ILogerApi log, INoticiaService noticiaService, IChaveService chaveService)
 {
     _log            = log;
     _noticiaService = noticiaService;
     _chaveService   = chaveService;
 }
예제 #4
0
 public NoticiasViewComponent(INoticiaService service)
 {
     _service = service;
 }
 public NoticiaAppService(INoticiaService baseService) : base(baseService)
 {
     _baseService = baseService;
 }
예제 #6
0
 public NoticiaAppService(INoticiaService noticiaService) : base(noticiaService)
 {
     _noticiaService = noticiaService;
 }
 public HomeController(ILoggerApi log, INoticiaService noticiaService)
 {
     _log            = log;
     _noticiaService = noticiaService;
 }
예제 #8
0
 public NoticiasViewComponent(INoticiaService noticiaService)
 {
     _noticiaService = noticiaService;
 }
예제 #9
0
 public HomeController(INoticiaService noticiaService)
 {
     _noticiaService = noticiaService;
 }
예제 #10
0
 public NoticiaController(INoticiaService noticiaService)
 {
     _noticiaService = noticiaService;
 }
예제 #11
0
 public ActionResult <string> Get(int id, [FromServices] INoticiaService service)
 {
     return(service.GetById(id)?.Titulo);
 }
예제 #12
0
        public ActionResult <IEnumerable <string> > Get([FromServices] INoticiaService service)
        {
            var lista = service.GetAll();

            return(new string[] { string.Join(",", lista) });
        }