// GET: Marca/Delete/5 public ActionResult Delete(int IdMarca) { try { Marca marcaRepo = new Marca(); marcaRepo.Inactivate(IdMarca); ViewBag.AlertMsg = "Marca desactivada exitosamente."; return(RedirectToAction("Index", new { pActivas = "A" })); } catch { return(Index("A")); } }