Reading and displaying an image from a folder
You could simplify your getImage() method pretty significantly to just:

public IEnumerable&lt;string&gt; GetImage() =&gt;
    Directory.GetFiles(rootPath + @"\lib\Images\Nature").Select(Path.GetFileName);


Things I changed:


Changed capitalization to follow .Net naming guidelines.
Removed unnecessary method ReadPhotosFromDirectory().
Removed unnecessary variable fileLocations.
Used verbatim string to avoid having to escape backslashes.
Used method group to delegate conversion instead of lambda.
Got rid of ToArray(), which didn't serve any purpose, and changed return type to IEnumerable&lt;string&gt;.
Used C# 6.0 expression bodied method.