public void Alterar(CONTROLE oControle, bool attach = true) { if (attach) { odb.Entry(oControle).State = System.Data.Entity.EntityState.Modified; } odb.SaveChanges(); }
public ActionResult CapturarAmigo(CONTROLE oControle) { ViewBag.Mensagem = "Parabéns! Você conseguiu um amiguinho!!"; _RepositoryC.Incluir(oControle); return(RedirectToAction("Index", "Home")); }
public void Excluir(CONTROLE oControle) { _Repository.Excluir(oControle); }
public void Alterar(CONTROLE oControle, bool attach = false) { _Repository.Alterar(oControle, attach); }
public void Incluir(CONTROLE oControle) { _Repository.Incluir(oControle); }
private void ministatus() { CONTROLE con = new CONTROLE(); }
public void Excluir(CONTROLE oControle) { odb.CONTROLE.Attach(oControle); odb.CONTROLE.Remove(oControle); odb.SaveChanges(); }
public void Incluir(CONTROLE oControle) { odb.CONTROLE.Add(oControle); odb.SaveChanges(); }