public ActionResult Edit([Bind(Include = "ID_LOGIN,EMAIL,SENHA,ATIVO,PERFIL,NOME,SOBRENOME")] Acesso acesso) { if (ModelState.IsValid) { db.Entry(acesso).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(acesso)); }
public ActionResult Edit([Bind(Include = "DESCRICAO_SERVICO,DATA_ATENDIMENTO,VALOR_SERVICO,TIPO_SERVICO")] Servico servico) { if (ModelState.IsValid) { db.Entry(servico).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(servico)); }