What do you want to save?
Add Code snippet
New code examples
-
C# 2022-01-30 11:50:32
gcp resource managment c#
using System; using System.Collections.Generic; using System.Threading.Tasks; using Google.Apis.Auth.OAuth2; using Google.Apis.CloudResourceManager.v1; using Google.Apis.Services; using Data = Google.Apis.CloudResourceManager.v1.Data; namespace OurFirs... Add solution -
C# 2022-01-28 16:01:32
content ReadAsStringAsync sync c#
content.ReadAsStringAsync().Result Add solution -
C# 2022-01-24 00:10:15
restsharp c#
//example code var lst = await service.ConnectHttpClient<User, List<User>>("api/User/GetUserInfoByUserId", new User() { UserId = 1 }); var lst = await service.ConnectRestClient<User, List<User>>("api/User/GetUserInfo... Add solution -
C# 2021-11-20 07:05:20
save image IFOrmFile to path in asp.net 5 C# web api
[Route("api/[controller]")] [ApiController] public class CarsController : ControllerBase { private readonly IHostingEnvironment _hostingEnv; private readonly WebAPIDbContext _context; public CarsController(WebAPIDbContext context, ... Add solution -
C# 2021-11-16 23:45:11
.net core executenonqueryasync transaction
var sqlQuery = "delete from table"; using (var connection = new SqlConnection(ConnectionString)) { await connection.OpenAsync(); using (var tran = connection.BeginTransaction()) using (var command = new SqlCom... Add solution -
C# 2021-11-13 17:23:16
how to POST in c#
using System.Net.Http; HttpClient client = new HttpClient(); /// POST /// var values = new Dictionary<string, string> { { "thing1", "hello" }, { "thing2", "world" } }; var content = new FormUrlEncod... Add solution -
C# 2021-11-12 19:54:27
c# post get request
using System.Net.Http; HttpClient client = new HttpClient(); /// POST /// var values = new Dictionary<string, string> { { "thing1", "hello" }, { "thing2", "world" } }; var content = new FormUrlEncod... Add solution -
Javascript 2021-11-12 04:58:15
redux saga fetch data using axios
// action type const FETCH_ALL = "FETCH_ALL"; const FETCH_FAIL = "FETCH_FAIL"; // initial state const fetchState = { users: [], error: "" }; //action creator const fetchDataAsync = () => { return (dispatch) => {... Add solution