August 2018
Intermediate to advanced
298 pages
5h 33m
English
Scenario
There has been a cyber attack in your company. The administrator wants to know which method has been invoked by the hacker by sending you the malicious URL.
Aim
To find the correct method invoked for the given URL (http://localhost/Hello3/Welcome/1).
Steps for completion
Open your editor and type the following code:
public class Hello3Controller : Controller{ public ActionResult Welcome(int id) { return View(); }...... { return View(); }}
Once the request reaches the controller, the controller will create a response by talking to the model and may pass the data to the view, and the view will then be rendered to the end user.
Read now
Unlock full access