Questions tagged as 'asp.net-web-api'

0
answers

Web api c # relationship between tables

I'm trying to make the relationship between two "Tables" classes. I'm building an API for MVC5 EF6 in Visual Studio, but I need an information from one class to appear in the other. public class ASSOCIADO { public string ID_EMPRESA { g...
asked by 12.06.2018 / 16:21
1
answer

How to do a replace in XML C #

I have a method that receives some parameters, I would like to replace some xml information, at the moment I can only remove and add new information private void CriacaoDoConfirmarLogin(string CaminhoArquivoParaLeitura, string NomeCaminhoPa...
asked by 19.06.2018 / 21:55
0
answers

Web-API display problem with tables with relationships

Good morning, people, I am developing a WEB API to be consumed in a mobile application using Xamarin, I am transposing the classes directly from the database with the code first of Visual Studio, however when I try to generate a simple view o...
asked by 22.05.2018 / 15:25
0
answers

Asynchronous handler completed while asynchronous operation was pending - C #

Hello, I have some questions regarding the code below. The code returns the following error [InvalidOperationException]: Module or asynchronous handler completed while the asynchronous operation was pending. The main method that calls th...
asked by 15.05.2018 / 17:49
1
answer

Send Json from client application and receive on Server

I'm having a problem sending a json from my client application to my API on the server. The Json is generated correctly, and the POST request is performed, however on the server side the following error is reported: "message": "Ocorreu um err...
asked by 11.05.2018 / 16:19
0
answers

How and where to call the method of creating a Token in WebApi to perform the validation of my user?

Good evening! I am doing a user authentication using HMACSHA512, however I am having difficulty calling the authentication method at project start and in my controller (I am using .NET). I did this in .NET Core and it has some classes and proper...
asked by 22.04.2018 / 04:50
0
answers

Is there a difference between using the "FromForm", "BindProperty" and only parameters in the method?

When I use the FromForm and BindProperty attributes, or even only parameters in the method, I get the same result, both get the values that were sent from a form. Is there any difference between using one or the other? Some Web API ex...
asked by 24.04.2018 / 16:43
1
answer

Error in WEB API with flask

I started my WEB API study trying to create a Pokedex API, when I tried to create the pokemon search function by the number the following error appeared: "json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)" appPokedex:...
asked by 12.04.2018 / 19:38
0
answers

How to save only those items that have been changed?

Goodafternoon,Ihaveadoubt,intheprograminquestionIamusingangular5andtypeScript,Ineedtofindawaytosendonlythefieldsthathavebeenchangedtothebackend(Theonlychangeablefieldinthetableisthe"Quantity"). The way it is today when I click save I send the e...
asked by 11.04.2018 / 19:30
0
answers

Select set of values inside a LINQ query

Friends, I'm trying to create the following .json with a LINQ query using Entity Framework 6: { "id": "1231-12321-sdff-21-31", "name": "nome do produto", "description": "Descrição do produto" "rating": 4.1, "pr...
asked by 29.03.2018 / 15:58