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