Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 61048

ASP.NET Web API is a framework for building HTTP services for clients like browsers and mobile devices. It is based on the Microsoft .NET Framework and ideal choice for building RESTful services.

4 votes

Multiple 'using' statements in method implementation

What does the using do? It is a terse way to call dispose on the object at the end of a given scope. So first, make sure you actually need to call dispose on the object at all, because it's completely …
moarboilerplate's user avatar
2 votes

WebAPI Client Proxy

The drawback to this is that you couple two classes together based on an arbitrary property of the outer class named Instance. Also, if you need to write tests around this you will run into issues. I …
moarboilerplate's user avatar
3 votes
Accepted

Choose the right type for method GetById

If you're only going to make the minimal required change Accommodate the IQueryable requirement in the layer where it is needed, not in your repository layer. That will probably be some object that t …
moarboilerplate's user avatar