Add controller for computers.

This commit is contained in:
2018-04-14 04:41:04 +01:00
parent e70211e1e3
commit d043ef3333
5 changed files with 370 additions and 6 deletions

View File

@@ -85,7 +85,7 @@ namespace cicm_web.Models
case NewsType.NewComputerInDb:
text = "New computer added to the database.";
imageUrl = "assets/photos/computers/";
targetView = "computer";
targetView = "Computer";
computer = Computer.GetItem(dbItem.AffectedId);
subtext = $"{computer.Company.Name} - {computer.Model}";
break;