IService question!

Jun 23, 2015 at 11:02 AM
Dear,

All the example you mentioned on controller. how could i call (or initial) the service from within the function.
Ex:
public class OAuthProvider: OAuthAuthorizationServerProvider {
    public override Task alidateClientAuthentication(OAuthValidateClientAuthenticationContext context) {
........................
var clientService = new ClientService();
var client = clientService.Find(context.ClientId);
.........................
    }
}

Please help me.

Viet Anh,
cheers