I am trying to create an inline if with razor has follows:
@(Model.ImageId == null ? "---" : @<text><img src='@(Url.Action(MVC.File.Get(Model.ImageId)))'/></text>)
I keep getting the errors:
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'
How can I solve this using an inline if