mirror of
https://github.com/claunia/marechai.git
synced 2025-12-16 19:14:25 +00:00
Use company logos again.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user