public ActionResult Edit(int ID) { OwnerCateViewModel model = new OwnerCateViewModel(); var entity = OwnerCateService.Find(ID); model.CateName = entity.CateName; model.ID = entity.ID; model.Code = entity.Code; model.Level = entity.Level; model.OrderIndex = entity.OrderIndex; model.PID = entity.PID; ViewBag.Data_PID = GetSelectList(entity.PID.HasValue ? entity.PID.Value : 0); return(View(model)); }
public ActionResult OwnerCodeName(int key) { return(Content(OwnerCateService.Find(key).CateName)); }