示例#1
0
        public Usuario Obter(ObterCmd comando)
        {
            this.Notificacoes.Limpar();
            Usuario resultado = null;

            this.IniciarTransicao();
            resultado = this._servUsuario.Obter(comando);
            this.Validar(this._servUsuario);
            this.EncerrarTransicao();

            return(resultado);
        }
示例#2
0
        public Usuario Obter(ObterCmd comando)
        {
            this.Notificacoes.Limpar();
            Usuario resultado = null;

            if (this.Validar(comando))
            {
                resultado = this._repUsuario.Obter(comando.Id.Value);
                this.Validar(this._repUsuario);
            }

            return(resultado);
        }
示例#3
0
        public Task <HttpResponseMessage> Get([FromUri] ObterCmd parametros)
        {
            InvocarSeNulo <ObterCmd>(ref parametros);
            Usuario resultado = null;

            if (this.EhValido())
            {
                resultado = this._appUsuario.Obter(parametros);
                this.Validar(this._appUsuario);
            }

            return(CriarRespostaTask(HttpStatusCode.OK, resultado));
        }
 public Curso Obter(ObterCmd comando)
 {
     throw new System.NotImplementedException();
 }