public IEnumerable<PropertyBase> PropertyGetAll() { var c = ds.Properties .OrderBy(p => p.City) .ThenByDescending(p => p.Price); return Mapper.Map<IEnumerable<PropertyBase>>(c); }
// GET: Properties public ActionResult Index() { return(View(m.PropertyGetAll())); }