//delete public ActionResult Delete(int id) { if (Session["UserEmail"] != null) { pren.EliminarPrenda(id); return(RedirectToAction("Index")); } else { return(RedirectToAction("Login", "Login")); } }
//delete public ActionResult Delete(int id) { pren.EliminarPrenda(id); return(RedirectToAction("Index")); }