Пример #1
0
 public async Task <IActionResult> Avaliar([FromRoute] AlterarSituacaoPactoTrabalhoCommand command)
 {
     command.SituacaoId = (int)SituacaoPactoTrabalhoEnum.Concluido;
     return(await Mediator.Send(command));
 }
Пример #2
0
 public async Task <IActionResult> Reabrir([FromRoute] AlterarSituacaoPactoTrabalhoCommand command)
 {
     command.SituacaoId = (int)SituacaoPactoTrabalhoEnum.EmExecucao;
     return(await Mediator.Send(command));
 }
Пример #3
0
 public async Task <IActionResult> Rejeitar([FromRoute] Guid pactoTrabalhoid, [FromBody] AlterarSituacaoPactoTrabalhoCommand command)
 {
     command.PactoTrabalhoId = pactoTrabalhoid;
     command.SituacaoId      = (int)SituacaoPactoTrabalhoEnum.Rejeitado;
     return(await Mediator.Send(command));
 }
Пример #4
0
 public async Task <IActionResult> VoltarParaRascunho([FromRoute] AlterarSituacaoPactoTrabalhoCommand command)
 {
     command.SituacaoId = (int)SituacaoPactoTrabalhoEnum.Rascunho;
     return(await Mediator.Send(command));
 }
Пример #5
0
 public async Task <IActionResult> EnviarParaAprovacao([FromRoute] AlterarSituacaoPactoTrabalhoCommand command)
 {
     command.SituacaoId = (int)SituacaoPactoTrabalhoEnum.EnviadoAceite;
     return(await Mediator.Send(command));
 }