public ActionResult DeleteConfirmed(int id) { Valore valore = db.Valores.Find(id); db.Valores.Remove(valore); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "Id,IdAsociado,Fecha,IdAutorización,IdDonación,OtrosValores,TotalCobro,Observaciones")] Valore valore) { if (ModelState.IsValid) { db.Entry(valore).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.IdAsociado = new SelectList(db.Asociados, "Id", "Nombres", valore.IdAsociado); return(View(valore)); }
// GET: Valores/Details/5 public ActionResult Details(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } Valore valore = db.Valores.Find(id); if (valore == null) { return(HttpNotFound()); } return(View(valore)); }
// GET: Valores/Edit/5 public ActionResult Edit(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } Valore valore = db.Valores.Find(id); if (valore == null) { return(HttpNotFound()); } ViewBag.IdAsociado = new SelectList(db.Asociados, "Id", "Nombres", valore.IdAsociado); return(View(valore)); }
public Carta(Seme seme, Valore valore) { this.seme = seme; this.valore = valore; }
public string EstraiRiga() { CultureInfo culture = CultureInfo.CreateSpecificCulture("it-IT"); string str = string.Format("{0};{1};{2};{3};{4}", NumeroRiga, Descrizione, Quantita.ToString("G", culture), Costo.ToString("G", culture), Valore.ToString("G", culture)); return(str); }