public ActionResult GetForm(string primaryKey) { var entity = UserService.Get(primaryKey); entity.RoleId = UserRoleRelationService.GetList(entity.Id).Select(c => c.SURRRoleId).ToList(); entity.DeptName = OrganizeService.Get(entity.SUDepartmentId.ToString()).SOFullName; return(Content(entity.ToJson())); }
public ActionResult GetForm(string primaryKey) { var entity = OrganizeService.Get(primaryKey); return(Content(entity.ToJson())); }