Exemple #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);
        }
Exemple #2
0
 public Location GetByLocationId(int locationId)
 {
     return(FirebaseLocationDal.GetAll().SingleOrDefault(p => p.LocationId == locationId));
 }