Ejemplo n.º 1
0
        public IActionResult AvailableEquipment()
        {
            var availableEquipment = from e in Repository.GetEquipmentListings()
                                     where e.Availability == true
                                     orderby e.Id ascending
                                     select(e);

            return(View(availableEquipment));
        }
Ejemplo n.º 2
0
 public IActionResult AllEquipment()
 {
     return(View(Repository.GetEquipmentListings()));
 }