@model string @if(!string.IsNullOrEmpty(Model)) { var statusMessageClass = Model.StartsWith("Error") ? "danger" : "success"; }