Monday, December 7, 2015

How to call action method in mvc without controller name

Create a specific route in your RouteConfig.cs file
routes.MapRoute(
  name: "About",
  url: "About",
  defaults: new { controller = "Home", action = "About" }
);

No comments:

Post a Comment

Find the value from array when age is more than 30

 const data = [   { id: 1, name: 'Alice', age: 25 },   { id: 2, name: 'Bob', age: 30 },   { id: 3, name: 'Charlie', ...