narsil/Tanshu.Accounts.Contracts/Service Contracts/MembershipBI.cs
2010-03-02 23:26:21 +05:30

29 lines
844 B
C#

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);
}
}