나는 면도칼이와있는 경우 인라인을 만들려고하고 있어요는 다음과 같습니다인라인 if 면도기를 사용하는 방법?
@(Model.ImageId == null ? "---" : @<text><img src='@(Url.Action(MVC.File.Get(Model.ImageId)))'/></text>)
나는 오류가 점점 계속 :
Type of conditional expression cannot be determined because there is no implicit conversion between 'string' and 'lambda expression'
cannot convert from 'System.Web.Mvc.ActionResult' to 'string'
을 나는
이 문제는 해결 될 수 있지만, 추가 설명을 제공하면이 게시물은 훨씬 더 가치가 있습니다. –