Implement searching reports from device stats.

This commit is contained in:
2019-11-24 03:08:09 +00:00
parent 2074ad489a
commit ad0ce6344f
5 changed files with 146 additions and 5 deletions

View File

@@ -346,5 +346,17 @@ namespace DiscImageChef.Server.Areas.Admin.Controllers
Id = deviceId
});
}
public IActionResult Find(int id, string manufacturer, string model, string revision, string bus)
{
var found = new FindReportModel
{
Id = id, Manufacturer = manufacturer, Model = model, Revision = revision,
Bus = bus,
LikeDevices = _context.Devices.Where(r => r.Model.ToLower().Contains(model.ToLower())).ToList()
};
return View(found);
}
}
}