Ejemplo n.º 1
0
 public async Task UpdateProfileAsync(UpdateRuggerArgs args)
 {
     using (var conn = new SqlConnection(_cstring.ConnectionString))
     {
         var sql = "Proc_UpsertName";
         await conn.ExecuteAsync(sql, new { Key = args.Key, name = args.MyName, bio = args.Bio }, commandType : CommandType.StoredProcedure);
     }
 }
Ejemplo n.º 2
0
 public async Task NameAsync(UpdateRuggerArgs args)
 {
     //throw new NotImplementedException();
     using (var conn = new SqlConnection(sqlConnectionStringBuilder.ConnectionString))
     {
         var sql = "Proc_UpsertName";
         await conn.ExecuteAsync(sql, new { Key = args.Key, name = args.MyName, bio = args.Bio }, commandType : CommandType.StoredProcedure);
     }
 }