Please enable JavaScript.
Coggle requires JavaScript to display documents.
ASP.NET MVC (How to create custom routes (OLD WAY TO CREATE ROUTES:
…
ASP.NET MVC
-
View
To pass a data to a view, use ViewBag.data = data
Use model to pass data to the views
-
-
CRUD
Create,Read, Update and Delete
Action Results
Type:
ViewResult
PartialViewResult
ContentResult
RedirectResult
RedirectToRouteResult
JsonResult
FileResult
HttpNotFoundResult
EmptyResult
Helper Method:
View();
PartialView();
Content();
Redirect();
RedirectToAction();
Json();
File();
HttpNotFound();
-
-
-
-
if there're ID through the paremeters, it comes before the query strings. like
controller/actionName/id?parameters
-