Monday, April 22, 2019

Routing custome url constraint for int id

Traditional Routing

Attribute Routing

1. Attribute routing define in routeConfig

2. Attribute routing apply in controller

3. Attribute routing apply with RoutePrefix in controller

4. Attribute routing apply with id contraint in controller
                                          asingn one integer

5. Attribute routing with id contraint with min max  apply in controller

6. Attribute routing apply with override with tild sign in controller
                 without routePrefix


No comments:

Post a Comment

Linq Expression syntax for where condtion in linq

(Expression<Func<T, bool>> filter)