narsil/Tanshu.Accounts.Contracts/Service Contracts/MembershipBI.cs

29 lines
844 B
C#
Raw Normal View History

2010-03-02 17:56:21 +00:00
using System;
using System.Collections.Generic;
//using System.Linq;
using System.Text;
using System.Data.SqlClient;
using System.ServiceModel;
namespace Tanshu.Accounts.Contracts
{
[ServiceContract]
public interface IMembershipBI
{
[OperationContract]
bool ValidateUser(string name, string password);
[OperationContract]
void AddUsersToRoles(string[] usernames, string[] roleNames);
[OperationContract]
string[] GetAllRoles();
[OperationContract]
string[] GetRolesForUser(string username);
[OperationContract]
bool IsUserInRole(string username, string roleName);
[OperationContract]
void RemoveUsersFromRoles(string[] usernames, string[] roleNames);
[OperationContract]
UserBO GetUserFromName(string name);
}
}