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;
}
}

Manas MohapatraRank #182 · 13.2K reputationPosted Nov 28, 2015, 8:51 PM EST
Jignesh TrivediRank #16 · 50.3K reputationPosted Nov 29, 2015, 7:12 PM EST
Manas MohapatraRank #182 · 13.2K reputationPosted Nov 28, 2015, 8:22 PM EST
rahul ahuja80 reputationPosted Nov 28, 2015, 8:33 PM EST
rahul ahuja80 reputationPosted Nov 28, 2015, 8:58 PM EST
rahul ahuja80 reputationPosted Nov 28, 2015, 8:59 PM EST
Ravi PatelRank #439 · 5.7K reputationPosted Nov 28, 2015, 11:13 PM EST