TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
rahul ahuja
NA
80
36.1k
Asp.Net Web Api 2 Attribute Routing
Nov 29 2015 12:57 AM
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>;
}
}
Reply
Answers (
7
)
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