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