public ActionResult Delete(int Num_IdCategoria)
        {
            HttpResponseMessage response = _categoriaApplication.Delete(Num_IdCategoria);

            if (!response.IsSuccessStatusCode)
            {
                return(new HttpStatusCodeResult(200)); //view de erro
            }
            return(new HttpStatusCodeResult(200));
        }
Beispiel #2
0
        public ActionResult Deletar(int id)
        {
            categoriaApp.Delete(id);

            return(RedirectToAction("Index", "Admin"));
        }