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 GetPropertyDetailByOwerId(int ownerId)
{
using (PropertyDetailsBusiness propertyDetailsBusiness = new PropertyDetailsBusiness())
{
List list = propertyDetailsBusiness.GetAllByOwnerID(ownerId).ConvertAll(item => (PropertyDetailsTbl)item);
return list as IEnumerable;
}
}
7 Replies
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jignesh TrivediPosted Nov 30, 2015, 12:12 AM
Ravi PatelPosted Nov 29, 2015, 4:13 AM
rahul ahujaPosted Nov 29, 2015, 1:59 AM
rahul ahujaPosted Nov 29, 2015, 1:58 AM
Manas MohapatraPosted Nov 29, 2015, 1:51 AM
rahul ahujaPosted Nov 29, 2015, 1:33 AM
Manas MohapatraPosted Nov 29, 2015, 1:22 AM