Minifycode 2021-10-03 Viewed 1.6K times ASP.Net Core MVC

In this article, you will learn what is Formcollection in .net core

In this article, Formcollection in .net core is the most fundamental concept to retrieve form parsed values from view to controller’s action.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using VideoFile.Models;

namespace usingcsharp.Controllers
    public class HomeController : Controller
        public IActionResult Index()
            return View();
        public IActionResult Index(IFormCollection obj)
            Employee obj1 = new Employee
            return RedirectToAction("Show", obj1);

Formcollection in .net core
minify code