Controllers in ASP.NET Core MVC- Arabic

preview_player
Показать описание
Controllers

1- Class inherits from Controller (Microsoft.AspNetCore.MVC)

2- exists in the Controllers folder

3- to Create new Controllers

Right click on Controllers folder

Add
Controller
Empty Controller MVC
4- Controller name should end with Controller word

(Ex: HomeController , EmpController)

5- contains a group of action method ( Client can access it from URL )

should be public
should be none static
should not overloaded
6- To Call Action Method

localhost:0000/Controller/action ( action with no parameters)

localhost:0000/Controller/action/id ( action id parameter)

localhost:0000/Controller/action?v1=d1&v2=d2&v3=d3.... (action with more than one parameter)
Рекомендации по теме
Комментарии
Автор

جزاك الله خيرا والف شكر ونتمنى المزيد من الدروس لانه طريقتك رائعة فى الشرح والتوضيح ممتاز

Mohamed-ktp
Автор

صدقا ابدااااع، طريقة ترتيب المعلومة وشرحها بشكل متسلسل شيء مميز جدا

malikmatarneh