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)); }
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)); }
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)); }
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)); }
public virtual void Atualizar(TEntity obj) { contexto.Entry(obj).State = System.Data.Entity.EntityState.Modified; }