public IEnumerable<ManufacturerWithDetail> ManufacturerGetAllWithDetail() { var c = ds.Manufacturers.Include("Country"); return Mapper.Map<IEnumerable<ManufacturerWithDetail>>(c.OrderBy(m => m.Name)); }
// GET: Manufacturers public ActionResult Index() { return(View(m.ManufacturerGetAllWithDetail())); }