public ActionResult ConfirmaDelete(int?id) { if (id == null) { return(new HttpStatusCodeResult(404)); } bd.removerQuarto((int)id); return(RedirectToAction("Index")); }
public ActionResult Delete(QuartosModel dados) { bd.removerQuarto(dados.nr); return(RedirectToAction("index")); }