Esempio n. 1
0
        public ActionResult Delete(int id, FormCollection collection)
        {
            try
            {
                EditoraBusiness editoraBusiness = new EditoraBusiness();

                editoraBusiness.ExcluirEditora(id);

                return(RedirectToAction("ListarNovasEditoras"));
            }
            catch
            {
                return(View());
            }
        }
Esempio n. 2
0
        // DELETE: api/WebApiEditora/5
        public void Delete(int id)
        {
            editora = new EditoraBusiness();

            editora.ExcluirEditora(id);
        }