Move model names to singular.

This commit is contained in:
2018-08-06 21:27:14 +01:00
parent 728eb83d6b
commit 7446bd856d
35 changed files with 1969 additions and 238 deletions

View File

@@ -65,8 +65,8 @@ namespace cicm_web.Controllers
public IActionResult View(int id)
{
ViewBag.WebRootPath = hostingEnvironment.WebRootPath;
Companies company = _context.Companies.Where(c => c.Id == id).Include(c => c.Description)
.Include(c => c.Machines).Include(c => c.Country).FirstOrDefault();
Company company = _context.Companies.Where(c => c.Id == id).Include(c => c.Description)
.Include(c => c.Machines).Include(c => c.Country).FirstOrDefault();
if(company == null) return Index();