예제 #1
0
        public List <Location> GetAllLocation()
        {
            var response = (from location in FirebaseLocationDal.GetAll()
                            select location).OrderBy(p => p.Borough).ThenBy(p => p.Zone).ToList();

            return(response);
        }
예제 #2
0
 public Location GetByLocationId(int locationId)
 {
     return(FirebaseLocationDal.GetAll().SingleOrDefault(p => p.LocationId == locationId));
 }