Esempio n. 1
0
 public void SaveUserRole()
 {
     string _userid = Parameters["puserid"];
     string _roleid = Parameters["proleid"];
     SysUserRolesBiz biz = new SysUserRolesBiz();
     ErrorEntity ErrInfo = new ErrorEntity();
     int result = biz.SaveRole(_userid, _roleid, out ErrInfo);
     Response.Write(ErrInfo.ToJson());
 }
Esempio n. 2
0
 public void GetUserRoleList()
 {
     string _userid = Parameters["puserid"];
     List<SysUserRoles> lists = new List<SysUserRoles>();
     SysUserRolesBiz biz = new SysUserRolesBiz();
     lists = biz.Select(Convert.ToInt64(_userid));
     Response.Write(Utils.ConvertToJson(lists));
 }