Move company view to Blazor.

This commit is contained in:
2020-05-21 22:24:57 +01:00
parent 307bb245ac
commit 667ae13046
6 changed files with 550 additions and 392 deletions

View File

@@ -75,19 +75,6 @@ namespace Marechai.Controllers
}).ToList());
}
public IActionResult View(int id)
{
ViewBag.WebRootPath = hostingEnvironment.WebRootPath;
Company company = _context.Companies.FirstOrDefault(c => c.Id == id);
if(company == null)
return Index();
ViewBag.CompanyDescription = company.Description?.Html ?? company.Description?.Text;
return View(company);
}
public IActionResult ByCountry(short id)
{
ViewBag.Iso3166 = _context.Iso31661Numeric.FirstOrDefault(i => i.Id == id);