Last active
December 12, 2022 13:48
-
-
Save usimsek/50af35c2435c5a7ed9c3b152fafecd08 to your computer and use it in GitHub Desktop.
razor view multiple if else
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var aciklama = item.Renk == "#FF0000" ? "Sevk Bekleyen" : item.Renk == "#e6e629" ? "İşlem Devam Ediyor" : item.Renk == "#FF8000" ? "Formen Onay Bekliyor" : item.Renk == "#0000FF" ? "Revize Edilmiş Talep" : item.Renk == "#24ce24" ? "Tamamlanmış Veya Servise Hazir" : ""; | |
var basvuruTip = item.BasvuruTipId == 1 ? "Servis" : item.BasvuruTipId == 2 ? "Taksi" : item.BasvuruTipId == 3 ? "Toplu Taşıma" : ""; | |
var setDateTime = Model.IslemeAl == true ? "setDateTime" : ""; | |
var activeBorder = item.Aktif == true ? "success" : "danger"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment