Follow us

Header Ads

ModelBinding in Asp.Net Core

ModelBinding in Asp.Net Core

Package

"Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="3.1.5" 

Controllers[Folder]

using Microsoft.AspNetCore.Mvc;

namespace ModelBinding.Controllers
{
    public class HomeController : Controller
    {
        public IActionResult Index()
        {
            return View();
        }
        public string Details(int id, string name)
        {
            return "Id=" + id + "Name=" + name;
        }
    }
}

Then Run with this Url:localhost:33084/Home/Details


Post a Comment

0 Comments