public IActionResult Read([FromServices] ITarefaRepository repository) { var id = new Guid(User.Identity.Name); var tarefas = repository.Read(id); return(Ok(tarefas)); }
public CadastroTarefaAppService( ITarefaRepository tarefaRepository, IUnitOfWork unitOfWork) { _tarefaRepository = tarefaRepository; _unitOfWork = unitOfWork; }
public TarefaController( ITarefaRepository tarefaRepository, UserManager <ApplicationUser> userManager) { _tarefaRepository = tarefaRepository; _userManager = userManager; }
public TarefaController() { //Instanciamos o objeto, a classe //Não podemos instanciar a interface, mas por que? // _tarefaRepository = new TarefaRepositorio(); }
public ToDoController(ITarefaRepository tarefaRepository) { _tarefaRepository = tarefaRepository; cliente.BaseAddress = new Uri("https://localhost:44357"); cliente.DefaultRequestHeaders.Accept.Clear(); cliente.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json")); }
public TarefaService( ITarefaRepository tarefaRepository , IMapper mapper) { this.mapper = mapper; this.tarefaRepository = tarefaRepository; }
public TarefaService( ITarefaRepository tarefaRepository, ITarefaReadOnlyRepository tarefaReadOnlyRepository) { _tarefaRepository = tarefaRepository; _tarefaReadOnlyRepository = tarefaReadOnlyRepository; }
public FluxoTrabalhoModel(IWorkflowRepository workflowRepository, ITarefaRepository tarefaRepository, IHubContext <FluxoTrabalhoHub> hubContext) { _workflowRepository = workflowRepository; _tarefaRepository = tarefaRepository; _hubContext = hubContext; }
public IncluirModel(IImpedimentoTarefaRepository impedimentoTarefaRepository, IRepository <ImpedimentoModel> impedimentoRepository, ITarefaRepository tarefaRepository) { _impedimentoTarefaRepository = impedimentoTarefaRepository; _impedimentoRepository = impedimentoRepository; _tarefaRepository = tarefaRepository; }
public TarefaCommandHandler(ITarefaRepository tarefaRepository, IUnitOfWork uow, INotificationHandler <DomainNotification> notifications, IMediatorHandler mediator) : base(uow, mediator, notifications) { _tarefaRepository = tarefaRepository; _mediator = mediator; }
public ITarefaRepository TarefaRepository() { if (tarefaRepository == null) { tarefaRepository = new TarefaRepository(_sqlConn, _sqlTrans); } return(tarefaRepository); }
public HomeController(IHttpContextAccessor httpContext, ITarefaRepository tarefaRepository, IUsuarioRepository usuarioRepository, IAtividadeRepository atividadeRepository) { this.httpContext = httpContext; this.tarefaRepository = tarefaRepository; this.usuarioRepository = usuarioRepository; this.atividadeRepository = atividadeRepository; usuarioLogado = usuarioRepository.GetUsuarioId(httpContext.HttpContext.Session.GetInt32("UsuarioLogadoId")); }
public TarefaService(ITarefaRepository baseRepository, ILogRepository logRepository, ITipoTarefaRepository tipoRepository, ITarefaAnexoRepository anexoRepository, IUsuarioRepository usuRepository) : base(baseRepository) { _baseRepository = baseRepository; _logRepository = logRepository; _tipoRepository = tipoRepository; _anexoRepository = anexoRepository; _usuRepository = usuRepository; }
public AlterarModel(IRecursoTarefaRepository recursoTarefaRepository, IRecursoProjetoRepository recursoProjetoRepository, ITarefaRepository tarefaRepository) { _recursoTarefaRepository = recursoTarefaRepository; _recursoProjetoRepository = recursoProjetoRepository; _tarefaRepository = tarefaRepository; }
public TarefaService(ITarefaRepository tarefaRepository, IUnitOfWork unitOfWork, IWorkflowService workflowService, IApontamentoService apontamentoService, IImpedimentoTarefaService impedimentoTarefaService) : base(tarefaRepository, unitOfWork) { _tarefaRepository = tarefaRepository; _workflowService = workflowService; _apontamentoService = apontamentoService; _impedimentoTarefaService = impedimentoTarefaService; }
public TarefaCommandHandler(ITarefaRepository tarefaRepository, IUnitOfWork uow, IMediatorHandler bus, INotificationHandler <DomainNotification> notifications) : base(uow, bus, notifications) { _tarefaRepository = tarefaRepository; Bus = bus; }
public TarefasController(INotificationHandler <DomainNotification> notifications, ITarefaRepository tarefaRepository, IMapper mapper, IMediatorHandler mediator) : base(notifications, mediator) { _tarefaRepository = tarefaRepository; _mapper = mapper; _mediator = mediator; }
public TarefasController(ITarefaRepository tarefaRepository, ITarefaService tarefaService, IMapper mapper, INotificador notificador) : base(notificador) { _tarefaRepository = tarefaRepository; _tarefaService = tarefaService; _mapper = mapper; }
public IActionResult Create([FromBody] Tarefa model, [FromServices] ITarefaRepository repository) { if (!ModelState.IsValid) { return(BadRequest()); } model.UsuarioId = new Guid(User.Identity.Name); repository.Create(model); return(Ok()); }
public TarefaAppService(IMapper mapper, ITarefaRepository tarefaRepository, IMediatorHandler bus, IEventStoreRepository eventStoreRepository) { _mapper = mapper; _tarefaRepository = tarefaRepository; Bus = bus; _eventStoreRepository = eventStoreRepository; }
public TarefaService(ITarefaRepository tarefaRepository, IValidator <CriarTarefaRequest> criarTarefaRequestValidator, ITarefaAdapter tarefaAdapter, IValidator <AlterarTarefaRequest> alterarTarefaRequestValidator) { _tarefaRepository = tarefaRepository; _criarTarefaRequestValidator = criarTarefaRequestValidator; _tarefaAdapter = tarefaAdapter; _alterarTarefaRequestValidator = alterarTarefaRequestValidator; }
public IActionResult Update(string id, [FromBody] Tarefa model, [FromServices] ITarefaRepository repository) { if (!ModelState.IsValid) { return(BadRequest()); } repository.Update(new Guid(id), model); return(Ok()); }
public IActionResult Put([FromBody] Tarefa tarefa, [FromServices] ITarefaRepository repository) { if (!ModelState.IsValid) { return(BadRequest()); } repository.Update(tarefa); return(Ok()); }
public TarefaController( UserManager <ApplicationUser> userManager, IListaSecaoRepository listaSecaoRepository, ITarefaRepository tarefaRepository, IListaRepository listaRepository) { _listaRepository = listaRepository; _listaSecaoRepository = listaSecaoRepository; _tarefaRepository = tarefaRepository; _userManager = userManager; }
public IActionResult Create([FromBody] Tarefa model, [FromServices] ITarefaRepository repository) { if (!ModelState.IsValid) { return(BadRequest()); } repository.Create(model); return(Ok()); }
public IActionResult Read([FromServices] ITarefaRepository repository) { try{ var id = new Guid(User.Identity.Name); var tarefas = repository.Read(id); return(Ok(tarefas)); } catch (Exception e) { return(BadRequest(e)); } }
public AlterarModel(ITarefaRepository tarefaRepository, IRepository <ProjetoModel> projetoRepository, IRepository <SistemaModel> sistemaRepository, IWorkflowRepository workflowRepository, IRepository <TipoTarefaModel> tipoTarefaRepository) { _tarefaRepository = tarefaRepository; _projetoRepository = projetoRepository; _sistemaRepository = sistemaRepository; _workflowRepository = workflowRepository; _tipoTarefaRepository = tipoTarefaRepository; }
public IActionResult Create([FromBody] Tarefa tarefa, [FromServices] ITarefaRepository repository) { if (!ModelState.IsValid) { return(BadRequest()); } tarefa.UsuarioId = Guid.Parse(User.Identity.Name); repository.Create(tarefa); return(Ok()); }
public TarefaHub(ITarefaRepository repository) { _repository = repository; }
public UpdateCommandTarefaHandler(ITarefaRepository repository) { _repository = repository; }
public TarefaController() { _tarefaRepository = new TarefaRepository(); }
public TarefaService(ITarefaRepository repository, IExportadorTarefa geradorPdf) { _repository = repository; _geradorPdf = geradorPdf; }
public TarefaDataManager() { _repository = new TarefaDao(); _control = new TarefaControl(_repository); }
public TarefaService(ITarefaRepository tarefaRepository) { _tarefaRepository = tarefaRepository; }
/// <summary> /// É responsável por definir o repositório do UserControl /// Este método é chamado no constructor da classe TarefaDataManager ///</summary> /// <param name="repository"></param> public TarefaControl(ITarefaRepository repository) : this() { _repository = repository; }
public TarefaController(ITarefaRepository tarefaRepository) { _tarefaRepository = tarefaRepository; }
public TarefaAppService(ITarefaRepository tarefaRepository, ITarefaService tarefaService) { _tarefaRepository = tarefaRepository; _tarefaService = tarefaService; }
public TarefaDataManager() { _repository = new TarefaDao(); _control = new TarefaControl(_repository); _tarefaService = new TarefaService(_repository, new GeradorTarefasPdf()); }