// DELETE: api/WebApiEditora/5 public void Delete(int id) { editora = new EditoraBUS(); //Remove pelo ID editora.Excluir(id); }
// GET: RealBooks/Delete/5 public ActionResult Delete(int id) { EditoraBUS objEditora = new EditoraBUS(); var lst = objEditora.BuscarEditora(id); //EditoraBUS objEditora = new EditoraBUS(); objEditora.Excluir(id); return(View(lst)); }
// GET: RealBooks/Delete/5 public ActionResult Delete(int id) { try { EditoraBUS editoraBUS = new EditoraBUS(); editoraBUS.Excluir(id); } catch (Exception) { throw; } return(View()); }
// DELETE: api/WebApiEditora/5 public void Delete(int id) { editora = new EditoraBUS(); editora.Excluir(id); }