Posts by Tester • 37 points
10 posts
-
-2
votes1
answer45
viewsQ: How to show a specific array that is in a JSON?
{ "id": "1", "addresses": [ { "num": "1" "addressType": "Comercial", "country": "Brasil", "postalCode": "89035200", }, { "num": "3" "addressType": "Comercial", "country": "Brasil", "postalCode":…
-
0
votes1
answer41
viewsQ: How to pass a component in Vue to variable?
I have the following code: <template> <div> <h2><Info/></h2> <input type="text" maxlength="1" value=`<Info/>`/> <input type="text" maxlength="1" />…
-
0
votes3
answers52
viewsQ: Fill each value of an input with a string variable character
I have a variable var string = 'TEST', and I intend to do something like: <input type="text" id="um" value="T"> <input type="text" id="dois" value="E"> <input type="text" id="tres"…
-
0
votes1
answer106
viewsQ: CSS - Align text to the center of the screen, exceeding the size of the div?
I have a DIV located in the center of the screen, with absolute position. I intend to put a text in the middle of it, that if it is larger than the div, go beyond its limits on the right and left,…
-
-1
votes1
answer122
viewsQ: How to make an error handling for search not found in ASP.NET API?
The return outside the Try-catch block returns me an empty array, but what should I put there to return some error message in the API request status? Removing Ienumerable and switching to an…
-
0
votes1
answer31
viewsQ: I cannot return ID when entering data via ASP NET Controller POST
I have the code below, and I need the ID returned as soon as I insert the object. If there is already a registered project, it does not do the insertion, but I need to return some data as empty or…
-
0
votes1
answer27
viewsQ: POST method in the ASP.NET Controller API is auto-incrementing foreign key even if the value should be empty
I have the following code: public ActionResult Post(Project project) { try { _acess.AddProject(project); } catch(DataException ex) { BadRequest(ex.Message); } return Ok(); } Sent JSON object: {…
-
0
votes1
answer41
viewsQ: I can’t handle exceptions in the Controller on an ASP.NET API
In the code below I am trying to change the status of the request when I could not find the Project ID. // GET api/values/5 [HttpGet("{id}")] public Project Get(int id) { try { var project =…
-
0
votes1
answer44
viewsQ: How to return a JSON in ASP.NET API that has another JSON inside?
I don’t know if my question expresses well, but the kind of feedback I need is something like this: [ { "Id": 0, "Name": "string", "Image": "string", "Why": "string", "What": "string",…
-
2
votes1
answer217
viewsQ: Cannot convert implicitly type "System.Collections.Generic.Ienumberable<SS_API.Model.Project>"
Cannot convert type implicitly "System.Collections.Generic.IEnumberable<SS_API.Model.Project>" em…