public bool SalvaCondominio(condominio condominio, string acesso) { if (acesso != Conexao.SenhaAcesso) { throw new Exception(); } return(controle.SalvaCondominio(condominio)); }
public ActionResult Edit(int id, condominio collection) { try { // TODO: Add update logic here controle.SalvaCondominio(collection); return(RedirectToAction("Index")); } catch { return(View()); } }