Ejemplo n.º 1
0
        // GET: Admin/AttributItems/Edit/5
        public ActionResult Edit(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            AttributItem attributItem = _attributeItemService.GetById(id);

            if (attributItem == null)
            {
                return(HttpNotFound());
            }
            ViewBag.AttributGrpId = new SelectList(_attributeGrpService.GetAllAttributeGrp(), "AttributGrpId", "Name", _attributeItemService.GetByAttrGrpId(id));
            return(PartialView(attributItem));
        }
Ejemplo n.º 2
0
        // GET: Admin/AttributItems/Details/5
        public async Task <IActionResult> Details(int?id)
        {
            if (id == null)
            {
                return(NotFound());
            }

            var attributItem = await _attributeItemService.GetById(id);

            if (attributItem == null)
            {
                return(NotFound());
            }

            return(View(attributItem));
        }