Beispiel #1
0
        public ActionResult DeleteAttribute(int id)
        {
            var prodTypeAttr = new ProductTypeAttributeService(_unitOfWork).GetProductTypeAttribute(id);

            prodTypeAttr.ObjectState = Model.ObjectState.Deleted;
            new ProductTypeAttributeService(_unitOfWork).Delete(prodTypeAttr);

            return(RedirectToAction("Edit", new { id = prodTypeAttr.ProductType.ProductTypeId }));
        }
Beispiel #2
0
        // GET: /ProductMaster/Edit/5
        //
        public ActionResult EditAttribute(int id)
        {
            var prodTypeAttr = new ProductTypeAttributeService(_unitOfWork).GetProductTypeAttribute(id);

            if (prodTypeAttr == null)
            {
                return(HttpNotFound());
            }
            return(View(prodTypeAttr));
        }