// GET: /ItemDecoracao/Details/5 public ActionResult Details(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } model.ItemDecoracaoCerimonial itemdecoracaocerimonial = new data.ItemDecoracaoCerimonial().GetElement(id.HasValue ? id.Value : 0); if (itemdecoracaocerimonial == null) { return(HttpNotFound()); } return(View(itemdecoracaocerimonial)); }
// GET: /ItemDecoracao/Edit/5 public ActionResult Edit(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } model.ItemDecoracaoCerimonial itemdecoracaocerimonial = new data.ItemDecoracaoCerimonial().GetElement(id.HasValue ? id.Value : 0); if (itemdecoracaocerimonial == null) { return(HttpNotFound()); } SelectList TipoItemDecoracaoCerimonial = new SelectList(new data.TipoItemDecoracaoCerimonial().GetCollection(0).OrderBy(tid => tid.Nome), "Id", "Nome"); ViewBag.TipoItemDecoracaoCerimonial = TipoItemDecoracaoCerimonial; return(View(itemdecoracaocerimonial)); }