public NoticiasController(INoticiaRepositorio noticiaRepositorio, IMapper mapper, INotificador notificador, INoticiaService noticiaService, IUser user) : base(notificador, user) { _noticiaRepositorio = noticiaRepositorio; _mapper = mapper; _noticiaService = noticiaService; }
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)); }
public HomeController(ILogerApi log, INoticiaService noticiaService, IChaveService chaveService) { _log = log; _noticiaService = noticiaService; _chaveService = chaveService; }
public NoticiasViewComponent(INoticiaService service) { _service = service; }
public NoticiaAppService(INoticiaService baseService) : base(baseService) { _baseService = baseService; }
public NoticiaAppService(INoticiaService noticiaService) : base(noticiaService) { _noticiaService = noticiaService; }
public HomeController(ILoggerApi log, INoticiaService noticiaService) { _log = log; _noticiaService = noticiaService; }
public NoticiasViewComponent(INoticiaService noticiaService) { _noticiaService = noticiaService; }
public HomeController(INoticiaService noticiaService) { _noticiaService = noticiaService; }
public NoticiaController(INoticiaService noticiaService) { _noticiaService = noticiaService; }
public ActionResult <string> Get(int id, [FromServices] INoticiaService service) { return(service.GetById(id)?.Titulo); }
public ActionResult <IEnumerable <string> > Get([FromServices] INoticiaService service) { var lista = service.GetAll(); return(new string[] { string.Join(",", lista) }); }