u/DifferentLaw2421

How should I access an post request in the URL ?
▲ 0 r/csharp

How should I access an post request in the URL ?

Here I tested a student id that is not registered before but id did not work ?
There is not problem in the student logic and stuff like that my problem is how to access POST request from the URL ?

Here is the code :

app.MapPost("/student/{id}", (Student newStudent, int id) =>

{

if (StudentDB.students.ContainsKey(id))

{

return Results.BadRequest(new ProblemDetails

{

Title = "Student already exists",

Detail = $"A student with id {id} already exists"

});

}

StudentDB.students.Add(id, newStudent);

return Results.Created($"/student/{id}", newStudent);

});

u/DifferentLaw2421 — 7 days ago

How some people learn topics (regardless the field of study) faster than the average person ?

How to become that fast learner guy who can learn anything fast ? I mean what are the secrets ?

reddit.com
u/DifferentLaw2421 — 12 days ago
▲ 0 r/csharp

Why asp.net (razor,blazor,mvc) are hard ? (Coming from game dev background)

I am a game developer and I am good in C# and Unity , a few weeks ago I started to learn asp.net for uni purposes and to learn how to make websites idk why but every thing feels hard maybe because I was used to game dev or it is actually hard to get it at first ? I have spent about 2 weeks and literally I cannot build or do anything I am so frustrated

u/DifferentLaw2421 — 14 days ago

I want to have more power when grabbing something and in punching what are some good exercises for this ? I am making some pushups but I do not think they are enough

reddit.com
u/DifferentLaw2421 — 23 days ago

I want to start jogging from zero to improve my stamina , I’ve tried jogging every day with gradually increasing intensity before, but I wasn’t disciplined about it (I admit that). Now I want to start fresh.

What’s the best routine for a complete beginner?
How many days per week should I jog?
Any tips on progressing slowly and safely?

reddit.com
u/DifferentLaw2421 — 24 days ago

I want to start jogging from zero to improve my stamina , I’ve tried jogging every day with gradually increasing intensity before, but I wasn’t disciplined about it (I admit that). Now I want to start fresh.

What’s the best routine for a complete beginner?
How many days per week should I jog?
Any tips on progressing slowly and safely?

Thanks in advance

reddit.com
u/DifferentLaw2421 — 24 days ago