How to get by Id from a repository Class dotnet core MVC : I have a repository.cs file like this:

      private static List<AdminResponse> responses = new List<AdminResponse>();

        public static IEnumerable<AdminResponse> Responses => responses;

        public static void AddResponse(AdminResponse response)
        {
            responses.Add(response);
        }


I am trying to retrieve an employee for editing from  Employeescontroller.cs The employee model has int Id as key.

What should I write inside:

    public ActionResult Details(int? id)
        {
            //What code goes here I cannot figure out :(
            return View();
        }


Thank you.
