I have this api controller code which get a list of files and map it into an object and then into a list. This code works.
string[] filesPath = Directory.Get