public ActionResult UpdateProducent(Producent p) { pf.Update(p); ViewBag.MSG = "Producenten er nu opdateret!!!"; return View(pf.Get(2)); }
protected void Page_Load(object sender, EventArgs e) { producent = pf.Get(1); litProducent.Text = producent.Navn + "<br />"; litProducent.Text += "<img src=\"Billeder/Producenter/" + producent.Logo + "\" />"; }
public ActionResult NyProducent(Producent p) { pf.Insert(p); ViewBag.MSG = "Producenten er nu oprettet!!!"; return View(); }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { producent = pf.Get(2); txtNavn.Text = producent.Navn; txtLogo.Text = producent.Logo; } }