Esempio n. 1
0
 public ActionResult DetailGrid(int?key)
 {
     if (key.HasValue)
     {
         var data = _Service.GetByKey(key.Value);
         ViewData["MasterForm"] = ReadViewHelper.PartialView(this, "_MasterForm", UserGroupBusiness.FromEntity(data));
         return(PartialView("_DetailGrid", _Service.GetGroupUser(key.Value)));
     }
     else
     {
         //ViewData["MasterForm"] = ReadViewHelper.PartialView(this, "_MasterForm", new ViewModel.UserGroup.UserGroupModel());
         return(PartialView("_DetailGrid", new List <Models.SystemUser>()));
     }
 }