Example #1
0
        // DELETE: api/WebApiEditora/5
        public void Delete(int id)
        {
            editora = new EditoraBUS();

            //Remove pelo ID
            editora.Excluir(id);
        }
Example #2
0
        // 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));
        }
Example #3
0
        // GET: RealBooks/Delete/5
        public ActionResult Delete(int id)
        {
            try
            {
                EditoraBUS editoraBUS = new EditoraBUS();

                editoraBUS.Excluir(id);
            }
            catch (Exception)
            {
                throw;
            }
            return(View());
        }
Example #4
0
        // DELETE: api/WebApiEditora/5
        public void Delete(int id)
        {
            editora = new EditoraBUS();

            editora.Excluir(id);
        }