Use company logos again.

This commit is contained in:
2018-08-07 21:48:53 +01:00
parent 31f6cb7744
commit 786cd53d7d
7 changed files with 17 additions and 32 deletions

View File

@@ -32,7 +32,6 @@ using System.Linq;
using Cicm.Database.Models;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
namespace cicm_web.Controllers
{
@@ -69,9 +68,6 @@ namespace cicm_web.Controllers
if(company == null) return Index();
ViewBag.LastLogo = company.CompanyLogos.OrderByDescending(l => l.Year).FirstOrDefault();
ViewBag.CompanyLogos = company.CompanyLogos.OrderByDescending(l => l.Year).ToList();
return View(company);
}