Beispiel #1
0
        public TB_LOJA Get(int id)
        {
            loj = new TB_LOJA();

            loj = (TB_LOJA) new Loja().ProducarPeloId(id).Objeto[0];

            return(loj);
        }
Beispiel #2
0
        public int Delete(int id)
        {
            loj = new TB_LOJA();

            loj = (TB_LOJA) new Loja().ProducarPeloId(id).Objeto[0];

            int retorno = new Loja().Remover(loj).CodigoErro;

            return(retorno);
        }
Beispiel #3
0
        public int Put(int id, [FromBody] TB_LOJA value)
        {
            int retorno = new Loja().Atualizar(value).CodigoErro;

            return(retorno);
        }
Beispiel #4
0
        public int Post([FromBody] TB_LOJA value)
        {
            int retorno = new Loja().Cadastrar(value).CodigoErro;

            return(retorno);
        }