public static int AddRole(RoleInfo role) { int id = DataAccessProvider.Instance().AddRole(role); DataCaching data = new DataCaching(); data.RemoveCache(key); return id; }
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); }
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); }
public static void UpdateRole(RoleInfo role) { DataAccessProvider.Instance().UpdateRole(role); DataCaching data = new DataCaching(); data.RemoveCache(key); }