public ActionResult Details(string brandname, string modelname, int year) { var showroom = new ShowroomViewModel(); showroom.shirt = db.shirts.Where(c => c.brand.name == brandname && c.model.name == modelname).FirstOrDefault(); showroom.related_shirts = db.shirts.Where(c => c.brand.name == brandname && c.model.name != modelname).ToList(); ViewBag.showroom = showroom; return(View()); }
public TestShowroomViewModelProvider(string tenant, ShowroomViewModel vm) { _tenant = tenant; _vm = vm; }