PhotoEntity.Controllers.Manager.PropertyGetAll C# (CSharp) Method

PropertyGetAll() public method

public PropertyGetAll ( ) : IEnumerable
return IEnumerable
        public IEnumerable<PropertyBase> PropertyGetAll()
        {
            var c = ds.Properties
                .OrderBy(p => p.City)
                .ThenByDescending(p => p.Price);

            return Mapper.Map<IEnumerable<PropertyBase>>(c);
        }

Usage Example

コード例 #1
0
 // GET: Properties
 public ActionResult Index()
 {
     return(View(m.PropertyGetAll()));
 }