示例#1
0
        public PartialViewResult Edit(int id)
        {
            var assetModel = _assets.GetByid(id);

            if (_assets.GetType(id) == "Book")
            {
                return(PartialView("EditBook", id));
            }
            else if (_assets.GetType(id) == "Video")
            {
                PartialView("EditVideo", id);
            }

            return(PartialView(assetModel));
        }