private FileContentResult GetDefaultProfileImage() { var path = _hosting.GetImageInfo("img/unknown.png"); var bytes = System.IO.File.Exists(path) ? System.IO.File.ReadAllBytes(path) : System.Array.Empty <byte>(); return(File(bytes, "image/png")); }