示例#1
0
 public static int AddRole(RoleInfo role)
 {
     int id = DataAccessProvider.Instance().AddRole(role);
     DataCaching data = new DataCaching();
     data.RemoveCache(key);
     return id;
 }
示例#2
0
 public override int AddRole(RoleInfo role)
 {
     return (int)SqlHelper.ExecuteScalar(this.ConnectionString, "Portal_Roles_Insert", role.RoleName, role.RoleDescription, role.Address, role.Phone, role.Fax, role.Email, role.UserManager, role.RoleParentID);
 }
示例#3
0
 public override void UpdateRole(RoleInfo role)
 {
     SqlHelper.ExecuteNonQuery(this.ConnectionString, "Portal_Roles_Update", role.RoleID, role.RoleName, role.RoleDescription, role.Address, role.Phone, role.Fax, role.Email, role.UserManager, role.RoleParentID);
 }
示例#4
0
 public static void UpdateRole(RoleInfo role)
 {
     DataAccessProvider.Instance().UpdateRole(role);
     DataCaching data = new DataCaching();
     data.RemoveCache(key);
 }