AssocAddEdit.Controllers.Manager.VehicleGetAllWithDetail C# (CSharp) Метод

VehicleGetAllWithDetail() публичный Метод

public VehicleGetAllWithDetail ( ) : IEnumerable
Результат IEnumerable
        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));
        }

Usage Example

 // GET: Vehicles
 public ActionResult Index()
 {
     return(View(m.VehicleGetAllWithDetail()));
 }