void Start() { sv = svGO.GetComponent<save>(); tst = tstGO.GetComponent<teste>(); adAP = adAPGO.GetComponent<addAP>(); mp = mpGO.GetComponent<maxPoints>(); }
public bool Send(teste t, out string message) { conn = new ConnectionFactory().GetConnectionDb(out message); try { cmd = new SqlCommand("SP_TESTE_IN", conn); cmd.CommandType = CommandType.StoredProcedure; cmd.Parameters.Add("@NOMETESTE", SqlDbType.VarChar).Value = t.nomeTeste; //Convert.ToInt32(p.AID.ToString()); cmd.Parameters.Add("@RETURN", SqlDbType.VarChar, 200).Direction = ParameterDirection.Output; cmd.ExecuteNonQuery(); message = cmd.Parameters["@RETURN"].Value.ToString(); return(true); } catch (SqlException erro) { message = "Erro ao enviar. " + erro.Message; return(false); } finally { conn.Close(); } }
static void Main(string[] args) { var teste = new teste(); teste.ToString(); Console.WriteLine("Hello World!"); }
public ActionResult setCliente([FromBody] teste _teste) { this.RedisService.Connect(); var result = this.RedisService.setCliente(_teste); return(Ok(result)); }
static void Main(string[] args) { string[] b = { "baba", "café", "toddy" }; teste a = new teste(); a.InstrucaoWhile(b); }
public ActionResult DeleteConfirmed(Guid id) { teste teste = db.teste.Find(id); db.teste.Remove(teste); db.SaveChanges(); return(RedirectToAction("Index")); }
void Start() { sv = svGO.GetComponent<save>(); tst = tstGO.GetComponent<teste>(); adAP = adAPGO.GetComponent<addAP>(); mp = mpGO.GetComponent<maxPoints>(); sn = snGO.GetComponent<SelecaoNiveis>(); btns = btnsGO.GetComponent<buttons>(); }
public ActionResult Edit([Bind(Include = "TesteId,Descricao")] teste teste) { if (ModelState.IsValid) { db.Entry(teste).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(teste)); }
public static void Main() { var lista = CriarLista(); var teste = new teste(lista); lista[0] = "Example"; WriteLine(teste.testeVeridico()); teste.OutroTeste(lista); WriteLine(teste.testeVeridico()); }
public ActionResult Edit([Bind(Include = "ID,teste01,UniqueKey,UsuarioInclusao,DataInclusao,UsuarioExclusao,DataExclusao")] teste teste) { if (ModelState.IsValid) { db.Entry(teste).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(teste)); }
public ActionResult Create([Bind(Include = "TesteId,Descricao")] teste teste) { if (ModelState.IsValid) { db.testes.Add(teste); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(teste)); }
void Start() { sv = svGO.GetComponent<save>(); tst = tstGO.GetComponent<teste>(); adAP = adAPGO.GetComponent<addAP>(); mp = mpGO.GetComponent<maxPoints>(); sn = snGO.GetComponent<SelecaoNiveis>(); btns = btnsGO.GetComponent<buttons>(); btl = btlGO.GetComponent<Battle>(); ce = ceGO.GetComponent<CreateEnemys>(); }
public ActionResult Create([Bind(Include = "ID,teste01,UniqueKey,UsuarioInclusao,DataInclusao,UsuarioExclusao,DataExclusao")] teste teste) { if (ModelState.IsValid) { teste.ID = Guid.NewGuid(); db.teste.Add(teste); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(teste)); }
public IHttpActionResult Post([FromBody] teste Teste) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } db.Testes.Add(Teste); db.SaveChanges(); return(CreatedAtRoute("Default", new { id = Teste.IdTeste }, Teste)); }
public string testeDAO([FromBody] teste t) { testeDAO tDAO = new testeDAO(); if (tDAO.Send(t, out string message)) { return(message); } else { return("Erro na solicitação"); } }
public string DelTesteDB([FromBody] teste t) { testeDAO tDAO = new testeDAO(); if (tDAO.Delete(t, out string message)) { return("registro excluido com sucesso"); } else { return("nao foi possivel excluir o registro"); } }
public string UpTesteDB([FromBody] teste t) { testeDAO tDAO = new testeDAO(); if (tDAO.Put(t, out string message)) { return("registro Atualizado com sucesso"); } else { return("Nao foi possivel Atualizado o registro"); } }
void Start() { sv = svGO.GetComponent<save>(); tst = tstGO.GetComponent<teste>(); adAP = adAPGO.GetComponent<addAP>(); mp = mpGO.GetComponent<maxPoints>(); sn = snGO.GetComponent<SelecaoNiveis>(); btns = btnsGO.GetComponent<buttons>(); btl = btlGO.GetComponent<Battle>(); ce = ceGO.GetComponent<CreateEnemys>(); lu = luGO.GetComponent<LevelUp>(); ask = askGO.GetComponent<ActivateSkills>(); us = usGO.GetComponent<UseSkills>(); }
// GET: testes/Edit/5 public ActionResult Edit(Guid?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } teste teste = db.teste.Find(id); if (teste == null) { return(HttpNotFound()); } return(View(teste)); }
public Aluno() { InitializeComponent(); InserirAlunos navhome3 = new InserirAlunos(); navhome3.Title = "Inserir Alunos"; Children.Add(navhome3); teste navhome2 = new teste(); navhome2.Title = "teste"; Children.Add(navhome2); }
public IHttpActionResult Put([FromBody] teste objeto) { var entity = db.Testes.FirstOrDefault(l => l.IdTeste == objeto.IdTeste); if (entity != null) { entity.IdTeste = objeto.IdTeste; entity.descricao = objeto.descricao; db.SaveChanges(); return(ResponseMessage(Request.CreateResponse(HttpStatusCode.OK, entity))); } else { return(ResponseMessage(Request.CreateResponse <string>(HttpStatusCode.NotFound, "Teste não localizado para alteração."))); } }
public bool Delete(teste t, out string message) { conn = new ConnectionFactory().GetConnectionDb(out message); try { cmd = new SqlCommand("SP_TESTE_DEL", conn); cmd.CommandType = CommandType.StoredProcedure; cmd.Parameters.Add("@IDTESTE", SqlDbType.Int).Value = t.idTeste; //Convert.ToInt32(p.AID.ToString()); cmd.Parameters.Add("@RETURN", SqlDbType.VarChar, 200).Direction = ParameterDirection.Output; cmd.ExecuteNonQuery(); message = cmd.Parameters["@RETURN"].Value.ToString(); return(true); } catch (Exception ex) { message = ex.ToString(); return(false); } }
public async Task <IActionResult> Post([FromBody] teste value) { return(Ok("ok jovem")); }
private void chamarClasseTesteToolStripMenuItem_Click(object sender, EventArgs e) { var teste1 = new teste(); teste1.ShowDialog(); }