public static bool Login(string username, string password) { return(BusinessPrincipal.SetPrincipal(BusinessIdentity.GetIdentity(username, password))); }
public static void LoadPrincipal(string username) { BusinessPrincipal.SetPrincipal(BusinessIdentity.GetIdentity(username)); }
public static bool Login() { return(BusinessPrincipal.SetPrincipal(BusinessIdentity.GetIdentity())); }