Posts by Carlos A. S. Moretti • 50 points
6 posts
-
2
votes1
answer141
viewsA: WEB API POST returns NULL
You are sending data through the URL, in which case you would need to use Annotation [Fromuri] instead of [Frombody]. I believe you are doing the wrong tests by Postman, I recommend using RAW and…
-
-3
votes5
answers639
viewsA: Complete number with "zeros" until the total size is 9!
Not the ideal solution, but... var boilerplate = "000000000000000000" var numero = 23 var boilerplate = numero + boilerplate.substring(numero.toString().length, boilerplate.length);…
-
1
votes4
answers259
viewsA: Error While Consuming Api at Angular
As much as the subscribe is a kind of return of your Listar(), I recommend that in this context do not use the subscribe but directly the Observable with the pipe Async. pokemon$:…
-
0
votes0
answers49
viewsQ: Problem with CORS in Angular 7 application and Webapi
Hey, guys, good morning. I am creating my first Angular 7 application with . NET Core Webapi. After all the structure of the mounted front, I went to communicate a get in an api I created and…
angularasked Carlos A. S. Moretti 50 -
0
votes1
answer31
viewsQ: Lazy Load only loads data when Solution remains
Guys, I have the following problem: When I make the Entity Framework add a data in the database, it does, but does not return the attributes of the loaded Class type. In order for them to load…
c#asked Carlos A. S. Moretti 50 -
1
votes0
answers36
viewsQ: Foreign key transaction in C# and Entity-
Guys, in my application I have the Context class that has the Dbset of Shopping and Dbset of Products. It turns out that in my BD table, Shopping has a FK that picks up the Product ID in the column…