public ActionResult Delete(int id, Servico servico) { try { var servicoDAO = new ServicoDAO(); servicoDAO.DeleteServico(id); this.AddFlashMessage("Registro excluido com sucesso!"); return(RedirectToAction("Index")); } catch { return(View()); } }