Currently I have a very simple console app that shows me the names of the files that are inside a specific folder.
public void archivoCarpeta()
{
string carpeta = ConfigurationManager.AppSettings["carpetaDescarga"];
DirectoryInfo dir = new DirectoryInfo(carpeta);
foreach (FileInfo file in dir.GetFiles())
{
Console.WriteLine(file.Name);
}
Console.Read();
}
but what I need now is to capture the name and date of the files and pass it to a cshtml view and put it inside a table If someone has an idea or a link with an example to guide me, I would appreciate it.