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

1
answer

Problem when changing entity with E.F and Dapper [closed]

I have a Dapper query, where I search for an entity: var fatura = ObterPorClientedEDataVencimento(cobranca.ClienteId, cobranca.DataCobranca); The Method and properties of my entity are in this Gist , I put it there just so the questio...
asked by 22.03.2018 / 12:50
1
answer

Create nuget package from a REST API Web application

I have a web service API REST in ASP.NET CORE 2.0 several projects (layers) in it. However, for larger forces, it can not be used as a service. It was then suggested to create a nuget package for this WEB API. I've never created a nuget packa...
asked by 10.01.2018 / 21:59
1
answer

How to read data from a class

I have an api that when receiving the data fills a class, I want to do a while in this class tb_dados_api and tb_carrinho, get the data to write to the database, how could I do this? Thank you Here I am getting the data [HttpPost]...
asked by 08.12.2017 / 02:20
2
answers

How to send 1 object and 1 vector to an API in C # with $ http.post?

In my application I created an API in C #, which is consumed by my web application in Angular. I need to pass 1 object and 1 vector as parameters to the API, but the content comes empty in the API, how to solve? Here are my codes: Part of...
asked by 24.10.2017 / 16:12
1
answer

How to log a post on a web api [closed]

I want to know what the Web Api is receiving in the Post that I'm sending.    This is the code I'm using. var httpWebRequest = (HttpWebRequest)WebRequest.Create("https://d6dc30b8-0ee0-4-231-b9ee.azurewebsites.net/");...
asked by 29.08.2017 / 09:52
2
answers

Doubt with WebRequest method get passing token

I'm trying to read the data of an application, where I send the information via get, Error: Can not send content with this type of verb. public string ConsultaPedido(string urlpedido, string NumeroPedido) { var request...
asked by 06.12.2017 / 02:14
1
answer

Signaling incoming messages

The customer has 7 stores and an array. Someone in the matrix with decision power, will keep your mobile in hand with an application. When an employee at one of the stores needs to approve a discount greater than what she can give, she then send...
asked by 21.08.2017 / 18:30
1
answer

Problems running / publishing WEP API on IIS10!

I want to publish my ASP.NET Web API via filesystem , but I'm having an assembly error while running the site in IIS10. By VS I can run, but not by IIS. NOTE: I already have the DLL in the bin folder. Error:    Could not load file o...
asked by 10.08.2017 / 20:44
1
answer

Publishing in Azure - FileNotFoundException: Could not find file 'D: \ home \ site \ wwwroot \ myapp.xml'

I'm trying to publish an ASP.NET Core Web Api application to an Azure Api App feature. This error started appearing after I checked the "Remove additional files at destination" option: Andafterthat,Istartedgettingtheerrorandcouldnotgetitt...
asked by 31.07.2017 / 19:24
1
answer

ICollection in Put WebApi method

I have the Put method in a WebApi Rest service // PUT: api/pessoas/5 [ResponseType(typeof(void))] public IHttpActionResult Putpessoa(int id, pessoa pessoa) { if (!ModelState.IsValid) {...
asked by 28.06.2017 / 12:38