Exemple #1
0
 public ActionResult Edit([Bind(Include = "IdTipoEmpresa,Descricao,Criacao,Criador,Atualizacao,Atualizador,Ativo")] TipoEmpresa tipoEmpresa)
 {
     if (ModelState.IsValid)
     {
         db.Entry(tipoEmpresa).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(tipoEmpresa));
 }
Exemple #2
0
 public ActionResult Edit([Bind(Include = "IdOcorrencia,Historico,Criacao,Criador,Atualizacao,Atualizador,Ativo")] Ocorrencia ocorrencia)
 {
     if (ModelState.IsValid)
     {
         db.Entry(ocorrencia).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(ocorrencia));
 }
Exemple #3
0
 public ActionResult Edit([Bind(Include = "IdUsuario,Login,Senha,Criacao,Criador,Atualizacao,Atualizador,Ativo")] Usuario usuario)
 {
     if (ModelState.IsValid)
     {
         db.Entry(usuario).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(usuario));
 }
Exemple #4
0
 public ActionResult Edit([Bind(Include = "IdSchedule,DataEnvioEmailAviso,Descricao")] Schedule schedule)
 {
     if (ModelState.IsValid)
     {
         db.Entry(schedule).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.IdSchedule = new SelectList(db.Solicitacoes, "IdSolicitacao", "Criador", schedule.IdSchedule);
     return(View(schedule));
 }
Exemple #5
0
 public virtual void Atualizar(TEntity obj)
 {
     contexto.Entry(obj).State = System.Data.Entity.EntityState.Modified;
 }