public ActionResult DeleteConfirmed(int id) { TipProdus tipprodus = db.TipProduse.Find(id); db.TipProduse.Remove(tipprodus); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit(TipProdus tipprodus) { if (ModelState.IsValid) { db.Entry(tipprodus).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(tipprodus)); }
public ActionResult Create(TipProdus tipprodus) { if (ModelState.IsValid) { db.TipProduse.Add(tipprodus); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(tipprodus)); }
public ProdusMVC(string codBare, string denumire, string marca, TipProdus tip, string stoc, string pret, string descriere, string garantie, string furnizor, StareProdus stare) { CodBare = codBare; Denumire = denumire; Marca = marca; Tip = tip; Stoc = stoc; Pret = pret; Descriere = descriere; Garantie = garantie; Furnizor = furnizor; Stare = stare; }
// // GET: /TipProdus/Edit/5 public ActionResult Edit(int id) { TipProdus tipprodus = db.TipProduse.Find(id); return(View(tipprodus)); }
// // GET: /TipProdus/Details/5 public ViewResult Details(int id) { TipProdus tipprodus = db.TipProduse.Find(id); return(View(tipprodus)); }
public void TestTipProdusPui() { _tipProdus = new TipProdus("Preparate Pui"); Assert.AreEqual(true, EvaluateProductList(), "Preparate Pui"); }
public void TestTipProdusDeserturi() { _tipProdus = new TipProdus("Deserturi"); Assert.AreEqual(true, EvaluateProductList(), "Deserturi"); }
public void TestTipProdusSupe() { _tipProdus = new TipProdus("Supe/Ciorbe"); Assert.AreEqual(true, EvaluateProductList(), "Supe....Ciorbe"); }