Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [RoutePrefix("category")] // kok rootumuzu belirtir
- [Route("{action=Index}")] // default olarak ele alınacak Actionu belirtir.
- public class HomeController : Controller
- {
- // örnek: /category
- public ActionResult Index()
- {
- return View();
- }
- // örnek: /category/detail
- public ActionResult Detail()
- {
- string title = "Detay Sayfası";
- ViewBag.Title = title;
- return View();
- }
- }
Add Comment
Please, Sign In to add comment