// PUT api/TipoPostagem/5 public bool Put(DTOTipoPostagem postagem) { BLLTipoPostagem BLLobjeto = new BLLTipoPostagem(); return(BLLobjeto.AtualizarPostagem(postagem)); }
// GET api/TipoPostagem/5 public DTOTipoPostagem Get(int id) { BLLTipoPostagem BLLobjeto = new BLLTipoPostagem(); return(BLLobjeto.SelecionarPostagem(id)); }
// POST api/TipoPostagem public bool Post(DTOTipoPostagem postagem) { BLLTipoPostagem BLLobjeto = new BLLTipoPostagem(); return(BLLobjeto.InserirPostagem(postagem)); }
// GET api/TipoPostagem public List <DTOTipoPostagem> Get() { BLLTipoPostagem BLLobjeto = new BLLTipoPostagem(); return(BLLobjeto.SelecionarPostagems()); }