예제 #1
0
        public AlertMsg AddOAuthUsers(OAuthUsers user)
        {
            var      helper        = new SQLiteHelper();
            var      claimedParam  = new SQLiteParameter("claimed", user.Claimed);
            var      friendlyParam = new SQLiteParameter("friendly", user.Friendly);
            var      effResult     = helper.ExecNonQuery("INSERT INTO OAuthUsers(Claimed, Friendly) VALUES(@claimed, @friendly)", claimedParam, friendlyParam);
            AlertMsg result        = effResult;

            result.IsSuccess = effResult.EffectLines == 1;
            return(result);
        }
 public AlertMsg AddOAuthUsers(OAuthUsers oAuthUsers)
 {
     return(_dataAccess.AddOAuthUsers(oAuthUsers));
 }