0
legatoteam created
How can i get the resources path in Controller? For example, i need the path string of image folder
1 Answer(s)
-
0
Just create a public method in Controller and send simple string like in ProfileController.cs As you see the path is being sent with a string.
private FileResult GetDefaultProfilePicture() { return File( @"Common\Images\default-profile-picture.png", MimeTypeNames.ImagePng ); }