# Feedback.cs
namespace StudentFeedbackApp.Models

{
    public class Feedback
    {
        public string StudentName { get; set; }
        public string Course { get; set; }
        public string Message { get; set; }
    }
}



# FeedbackRepository.cs
namespace StudentFeedbackApp.Models
{
    public class FeedbackRepository
    {
        public static List<Feedback> FeedbackList = new List<Feedback>();
    }
}


# FeedbackController.cs
using Microsoft.AspNetCore.Mvc;
using StudentFeedbackApp.Models;
namespace StudentFeedbackApp.Controllers
{
    public class FeedbackController : Controller
    {
        public IActionResult Index()
        {
            return View(FeedbackRepository.FeedbackList);
        }

        [HttpPost]
        public IActionResult Submit(string studentName, string course, string message)
        {
            Feedback feedback = new Feedback();
            feedback.StudentName = studentName;
            feedback.Course = course;
            feedback.Message = message;
            FeedbackRepository.FeedbackList.Add(feedback);
            return RedirectToAction("Index");
        }
    }
}


# Index.cshtml
@model List<StudentFeedbackApp.Models.Feedback>
<html>
    <head>
        <title>Student Feedback System</title>
    </head>
    <body>
        <h1>Student Feedback System</h1>
        <form method="post" action="/Feedback/Submit"> Student
            Name:
            <input type="text" name="studentName" required>
            <br><br>
            Course:
            <select name="course">
                <option>Java</option>
                <option>Python</option>
                <option>Web Development</option>
                <option>Cloud Computing</option>
            </select>
            <br><br>
            Feedback:
            <input type="text" name="message" required>
            <br><br>
            <button type="submit">Submit</button>
        </form>
        <hr>
        <h2>Feedback List</h2>
        @foreach (var f in Model)
        {
            <p>
            <b>@f.StudentName</b> (@f.Course) : @f.Message
            </p>
        }
    </body>
</html>