public AlertMsg AddOAuthNonce(OAuthNonce nonce) { var helper = new SQLiteHelper(); var contextParam = new SQLiteParameter("context", nonce.Context); var codeParam = new SQLiteParameter("code", nonce.Code); var timeParam = new SQLiteParameter("time", nonce.Time.Ticks); var effResult = helper.ExecNonQuery("INSERT INTO OAuthNonce (Context, Code, Time) VALUES (@context, @code, @time);", contextParam, codeParam, timeParam); AlertMsg result = effResult; result.IsSuccess = effResult.EffectLines == 1; return(result); }
public AlertMsg AddOAuthNonce(OAuthNonce nonce) { return(_dataAccess.AddOAuthNonce(nonce)); }