public IEnumerable<VehicleWithDetail> VehicleGetAllWithDetail() { var c = ds.Vehicles.Include("Manufacturer.Country"); return Mapper.Map<IEnumerable<VehicleWithDetail>>(c.OrderBy(v => v.Model).ThenBy(v => v.Trim)); }
// GET: Vehicles public ActionResult Index() { return(View(m.VehicleGetAllWithDetail())); }