1
vote
1answer
23 views

Can't bind view model properly

I want to create client side logging infrastructure using log4javascript. All logs are sent to server. That part works well. I have created WebApi controller to write those log messages on server. The ...
0
votes
0answers
22 views

How can i get the real object from the ref attribute with javascript from webapi

I have a class called Question that contains an array of Answers. These two classes contains each one an object called User. When webapi returns me the List of questions if the same user is in more ...
0
votes
2answers
55 views

ASP.NET Web API Routing in ApiController

I've been struggling with my routing for some time now and after a few days of trying to Google the solution without luck, I'm hoping someone may be able to shine some light on my problem. I have the ...
0
votes
1answer
16 views

Asp.net web api odata substringof null issue

I am using ASP.NET WEB API Odata libraries. If I use substringof in my call and the value is null it fails. The URI I am passing is: ... odata/MyEntity()?$filter=substringof(null,Name) ... And the ...
0
votes
1answer
16 views

Web API + ODataQueryOptions + $top or $skip is causing a SqlException

This code has been simplified for this example. The query is actually returned from a service, which is why I would prefer to write the method this way. [HttpGet] public ...
0
votes
1answer
37 views

Multple Post actions in one web api controller

I have a Web Api controller which as 3 post actions here are the actions: public HttpResponseMessage PostNewRecomendation([FromBody] PostNewRecomendationMessage newRecomendation) public ...
1
vote
1answer
30 views

MVC 4 Web API ModelState not using correct error description

I have followed the tutorial at http://www.asp.net/web-api/overview/formats-and-model-binding/model-validation-in-aspnet-web-api precisely, yet when I change the [Required] attribute on any of the ...
2
votes
3answers
68 views

ASP.Net web api post action param always coming null

I am always getting null value for my post action param in my asp.net web api. This is my action. [System.Web.Mvc.HttpPost] public HttpResponseMessage Add([FromBody]Products id) { ...
0
votes
1answer
28 views

Simple default operation with optional parameters

I'm trying to create a method that takes two strings and gets called if I provide the params or not. It's proving to be difficult for me. Here is my controller with the test method: public class ...
1
vote
1answer
56 views

ASP.Net Web API Help Page returning empty output

I have a preexisting MVC app that I added Web API and Web API Self Documentation using Nuget. While the Web API controllers function fine (return valid responses to HTTP requests) the Help controller ...
4
votes
1answer
56 views

Custom Model Binder for Decimal in Asp.Net Web API

I have a web api application using asp.net mvc web api that recieve some decimal numbers in viewmodels. I would like to create a custom model binder for decimal type and get it working for all ...
0
votes
0answers
17 views

Asp.net web api serializing generic object [duplicate]

I have a generic object used for pagination results: public class PagedResult<TEntity> { public IEnumerable<TEntity> Results { get; set; } public int PageNumber { get; set; } ...
0
votes
1answer
33 views

How to bind to detail using Bootstrap Modal Rowlink with Knockout - MVC 4

I am struggling to get my head around opening a modal form from a table generated from WebApi using Knockout. Actually, more correctly, I am struggling with home to bind the modal to the clicked row. ...
0
votes
1answer
39 views

Can I use MiniProfiler to instrument an ASP.NET MVC WebApi website?

The ASP.NET MVC website I'm working on has some (Controller-derived) "user" pages and some (ApiController-derived) "api" pages. The site uses MiniProfiler to instrument the "user" pages, and I really ...
0
votes
1answer
22 views

How create MultipartFormFormatter for ASP.NET 4.5 Web API

These links didn't help me: way 1, way 2 Example: //Model: public class Group { public int Id { get; set; } public File File { get; set; } } //Controller: [HttpPost] public void ...

1 2 3 4 5 64
15 30 50 per page