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

1
answer

How to pass two parameters with AJAX and receive them in the controller?

How can I pass two parameters with ajax and receive them in the Controller as parameters public IHttpActionResult GetComplementoMateriaId(int id, int IdUnidad) Update: Well, it's actually a GET what I want to do, I work with pages .htm...
asked by 03.11.2016 / 17:40
2
answers

How to Create an Edit View in AngularJs

How could I do that by clicking on the Edit button, I could open a form where I filled out all the data to edit the company that appears in the table ??. In the query I only show 6 Basic Data but in reality they are more and I would like to show...
asked by 26.07.2016 / 16:00
1
answer

Customize headers with IHttpActionResult?

Currently I have a method that returns a list of cities, the method I have it in the following way: [ResponseType(typeof(List<Cities>))] public IHttpActionResult GetSourceCities(int idPais) { try { var cities = GetCities(...
asked by 27.04.2016 / 21:03
2
answers

Error creating file "Can not create a file when that file already exists"

I'm trying to create a file from a call from a web service. When I run it I get the error Cannot create a file when that file already exist According to the debug, the code falls on the line File.Move(originalFileName, newFileNam...
asked by 24.03.2016 / 21:50
0
answers

Can not implicitly convert type (object) to System.Collections.Generic.IEnumerable

I carry out the implementation of an API with the DDD architecture (Domain Driven Design) but when defining the method for deserialization of a json file from which it receives it of type string . But it throws me an error because it needs...
asked by 14.09.2018 / 18:27
0
answers

how to perform a Json with the DDD architecture pattern

I have the following code in which a client makes a Http request of type Post with Json, so my question is how can I de-serialize that Json and extract its data. I already have created the classes where are the tributes of that Json file inside...
asked by 15.09.2018 / 00:18
1
answer

[FromBody] Web parameter Api Asp.net arrives null if Text / xml is

hello I have the following problem with my web api I have an object public class Message { public string Id { get; set; } public List<Resource> Contained { get; set; } public DateTimeOffset? Timestamp { get; set; } pu...
asked by 12.01.2018 / 15:10
2
answers

Prevent the Entity Framework from trying to insert if the nested resource exists

My case is the following, I have a class orders that a client has, I have two cases, I can pass a post with a new client or I can pass a post with an existing client, if the client does not exist it will try to insert, but if there is going to t...
asked by 01.02.2018 / 15:07
0
answers

RASPBERRY pi3 problem loading OS [closed]

I have a problem with my raspberry. I think I turned it off and now I have a configuration problem. It does not show anything on the LCD screen. And by hdmi it shows the load of the Operating System until error appears. I have already formatted...
asked by 08.02.2018 / 20:42
1
answer

Problem to detect domain user in asp core 2

Good morning. I'm having trouble authenticating a domain user in asp core 2 to be able to manipulate directories. The client environment is an angular application 4, web server api asp Core (c #) and server windows 7 for shared files. T...
asked by 25.10.2017 / 19:46