public TB_LOJA Get(int id) { loj = new TB_LOJA(); loj = (TB_LOJA) new Loja().ProducarPeloId(id).Objeto[0]; return(loj); }
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); }
public int Put(int id, [FromBody] TB_LOJA value) { int retorno = new Loja().Atualizar(value).CodigoErro; return(retorno); }
public int Post([FromBody] TB_LOJA value) { int retorno = new Loja().Cadastrar(value).CodigoErro; return(retorno); }