Exemplo n.º 1
0
        public async Task HandleSaveCredentialRequest(Credential credential, RequestContext <bool> requestContext)
        {
            Func <bool> doSave = () =>
            {
                Credential.ValidateForSave(credential);
                return(credStore.Save(credential));
            };

            await HandleRequest(doSave, requestContext, "HandleSaveCredentialRequest");
        }
 public bool SaveCredential(Credential credential)
 {
     Credential.ValidateForSave(credential);
     return(credStore.Save(credential));
 }