Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
7
Reply
Asp.Net Web Api 2 Attribute Routing
rahul ahuja
Nov 29 2015 12:57 AM
575
Reply
Hi All,
How to use attribute routing, Below is the code How I used in my project but does not work.
[Route("api/PropertyDetails/{ownerId}")]
public IEnumerable<PropertyDetailsTbl> GetPropertyDetailByOwerId(int ownerId)
{
using (PropertyDetailsBusiness propertyDetailsBusiness = new PropertyDetailsBusiness())
{
List<PropertyDetailsTbl> list = propertyDetailsBusiness.GetAllByOwnerID(ownerId).ConvertAll(item => (PropertyDetailsTbl)item);
return list as IEnumerable<PropertyDetailsTbl>;
}
}
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
7
)
Next Recommended Forum
showing date and time to local date and time from UTC Date a
how to get the single user post data from two table in asp.n