Beispiel #1
0
        public ActionResult Edit(int id = 0)
        {
            var model      = _extendRepository.GetModel(id);
            var category   = _extendRepository.GetCategory();
            var ExtendType = _extendRepository.GetExtendTypeList(0);

            ViewBag.ExtendType = ExtendType;
            ViewBag.Category   = category;
            ViewBag.Extend     = model;
            return(View());
        }