Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- themes = db.Themes.ToList();
- foreach (var item in themes)
- {
- if (item.themeImage != null)
- {
- string imageBase = Convert.ToBase64String(item.themeImage);
- imageSource1 = string.Format("data:image/gif;base64,{0}", imageBase);
- }
- if (theme == beach && item.themeID == 1)
- {
- <text>
- <div class="jumbotron" id="@item.themeID" img src="@item.themeImage">
- </text>
- }
- else if (theme == animals && item.themeID == 2)
- {
- <text>
- <div class="jumbotron" id="@item.themeID" style="background-image:@imageSource1; background-size:cover">
- </text>
- }
- else if (theme == kitchen && item.themeID == 3)
- {
- <text>
- <div class="jumbotron" id="@item.themeID" style="background-image:@imageSource1; background-size:cover">
- </text>
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement