私はActionResultを持っていますhttp://example/image.png
URLがリクエストされているかどうかを判断する方法はありますか
<img src="http://example/image.png" />
またはから開かれた
<a href="http://example/image.png" target="_blank" />
?
だから私は結果を制御することができます...
public ActionResult ViewPhoto()
{
if (<img src />)
{
return File();
}
else
{
return View();
}
}