@model WeApp.Views.Shared.Modals.ModalViewModel @{ string width = Model.Width == null || Model.Width <= 500 ? "" : "max-width:" + Model.Width + "px"; string size = string.IsNullOrEmpty(Model.SizeClass) ? "" : "modal-" + Model.SizeClass; }