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

1
answer

C # Template (SPA) does not run [closed]

I went to test the Single Page Application, using the visual studio template. Well, I created the project and did nothing, nothing at all, I just created the project and rode it and when running it gave me this error:    Severity Code Descrip...
asked by 10.05.2017 / 18:18
1
answer

API C # - Update

I created an API using entity framework, the connection is ok, but when I update the data in the database, qlqr one of the fields, the Json in the API does not change. How to resolve this type of update?     
asked by 16.05.2017 / 20:50
1
answer

Deserialize JSON with Restsharp and with JavaScriptSerializer

I'm having difficulty deserializing a JSON. I'm getting the following content: "response":{ "account":{ "name":"Evandro Teste", "owners":[], "creationDate":"2017-07-07T07:18PDT", "city":"Guarulhos",...
asked by 11.07.2017 / 17:00
2
answers

Unity installation is giving error

I installed Unity for DI and by NuGet is giving an error, which I do not understand, it seems to me that it points to NewtonSoft, see the error below:    Install-Package: An error occurred while retrieving package metadata   for 'Newtonsoft.J...
asked by 24.05.2017 / 15:52
1
answer

Create Json with a lot of Data and Return with WebApi

Scenario: I have a WebApi that runs a method on my service layer that executes a query either returns 500k result lines, containing 90 columns. Method that queries and traverses results: using (var command = Session.Connection.CreateCo...
asked by 13.02.2017 / 20:25
1
answer

POST is not receiving JSON

I need some help with running a POST. Well, when I try to call my API ( link ) to execute a Post, I can not pass the JSON for her. The following is the API used: // POST: api/Teste public void Post([FromBody]string json) { ClassRetorn...
asked by 11.10.2016 / 04:51
1
answer

NHibernate is modifying property when returning by Web Api

I have a web service api where a query is made to the database through nhibernate, but when returning the object, its referenced properties are overwritten, I believe it's because of the nhibernate proxy. HowcanIbedoingtofixthisproblem?Follo...
asked by 21.07.2016 / 16:15
1
answer

What techniques can be used to authenticate to REST applications? [closed]

I'm developing a Restful application with PHP , I need to make an authentication mechanic on that system so that client applications can consume their data. What techniques can be used to authenticate to Restful ?     
asked by 25.05.2016 / 17:18
1
answer

Entity Framework + Fluent API + Web API?

I'm having trouble mapping the category within a product, when I'm ready the products the category ( virtual class ) comes empty, even with CategoryId filled. Product public class Product { public Product() { th...
asked by 29.10.2015 / 21:33
1
answer

How to avoid duplication of controllers / responsibility in modern applications?

Today, communication between applications, mobile and / or other devices is growing. .NET provides Asp.net MVC and Asp.net WebAPI (to date, stable version). Commonly Asp.net MVC returns Views , although WebApi...
asked by 28.10.2015 / 20:45