예제 #1
0
 // 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));
 }
예제 #2
0
        // 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));
        }