0
votes
1answer
261 views

What are the major differences between Web API and ASP MVC

The title really sums up my question. I have used both technologies but I am uncertain as to what one offers that is substantially different than the other. In essence: What criteria and/or ...
0
votes
0answers
197 views

For Authentication and Authorization : MVC controller or Web API controller?

The Controller in question is my "Account" controller which has actions to sign in, register, log off, recover password etc. My application is web based but soon will also available on Android and ...
0
votes
0answers
59 views

Anti-pattern WCF Client Proxy

I have inherited a project from an IT team that moved to a different project. I noticed right away that they had let the Entities objects bleed all the way to the MVC3 Views! I also have to take into ...
0
votes
2answers
92 views

How to test WebAPI Controllers?

I have an webAPI application that has a Repository layer, DTO service layer, and WebAPI layer. WebAPI calls DTO calls Repository. My repository begins like this: public class RepositoryService : ...
1
vote
1answer
1k views

Asp MVC and Web Api Async Controllers

I was working with Asp MVC 3, and in my application was created Async controller with some methods like: public void ActionAsync() { AsyncManager.OutstandingOperations.Increment(); ...
0
votes
0answers
173 views

When listbox items are selected controller takes null parameter

I have multiple textboxes in my form which is sending ajax request with a certain Web-Api. However, when i add a listbox to my controls and select an item from it parameter of post api controller ...
5
votes
2answers
831 views

Partial Entity Updates in WebAPI PUT/POST

Say you have a repository method to update a Document: public Document UpdateDocument(Document document) { Document serverDocument = _db.Documents.Find(document.Id); serverDocument.Title = ...
0
votes
1answer
176 views

Authorization code AND Authorize attribute in WebAPI Controllers

I have the following method to retrieve a folder: [HttpGet] [Authorize] public HttpResponseMessage GetFolder(int id) { FolderDto folder = _service.GetFolder(id); if ...
0
votes
1answer
161 views

SimpleMembershipProvider vs WebSecurity

I have a WebAPI project with a Repository layer. For methods related to accounts, I'm not sure which method to use here: public class RepositoryService : IRepositoryService { private ...
0
votes
4answers
790 views

MVC 3 Web API Routing Not Working

I'm fighting issues with routing in an MVC 3 Web API. It seems like it should be pretty simple, but I'm not making any headway. My error is: <Error> <Message>The request is ...
1
vote
1answer
54 views

What do I use for a return type when I am returning data from an anonymous class with Web API?

I have the following ASP MVC4 code: [HttpGet] public virtual ActionResult GetTestAccounts(int applicationId) { var testAccounts = ( from testAccount in ...
0
votes
1answer
180 views

Unable to call Delete Web Api

When I attempt to call a Delete Web API, I get: NetworkError: 404 Not Found - /api/tradespendentryip/5 My API controller looks like this: public class TradeSpendEntryIPController : ApiController { ...
0
votes
1answer
132 views

Unable to throw httpResponseException

When I try to throw the below forbidden ResponseException from my controller. An exception stating "Processing of the HTTP request resulted in an exception. Please see the HTTP response returned by ...
0
votes
0answers
159 views

Reporting solutionl for HTML5 , MVC4.0 with AngularJS

We are using MVC 4.0 with WEBAPI as project, AngujarJS as client side javascript framework. Our Server-side is ASP.Net webapi/ MS SQL Server. Please suggest good reporting tool with new edge of ...
2
votes
2answers
150 views

Partial Updates for Entities with Repository/DTO patterns in MVC (prepping for API)

I've built my Domain model layer, my repository layer, and now I'm working on my DTO layer to be used by a webApi project. I'm in the middle of implementing an Update service method, and I'm ...

1 2 3 4 5 7
15 30 50 per page