コード例 #1
0
        public async Task <ResponseViewModel> Adicionar(ComunicadoAdicionarRequestViewModel request)
        {
            ComunicadoAdicionarCommand comunicadoAdicionarCommand = new ComunicadoAdicionarCommand(request.Data, request.Titulo, request.Descricao, request.GrupoId);
            ResponseCommand            responseCommand            = await _mediator.Send(comunicadoAdicionarCommand, CancellationToken.None).ConfigureAwait(true);

            ResponseViewModel response = new ResponseViewModel(responseCommand.Sucesso, responseCommand.Mensagem, responseCommand.Objeto);

            return(response);
        }
コード例 #2
0
 public int Adicionar(ComunicadoAdicionarCommand request)
 {
     throw new System.NotImplementedException();
 }