Exemple #1
0
 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));
 }
Exemple #2
0
 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));
 }