Пример #1
0
 public List<StoreLocationView> GetAllLocations()
 {
     using (var locationrepo = new StoreLocationRepository())
     {
         return locationrepo.GetAll().Select(x => new StoreLocationView()
         {
             LocationId = x.LocationId,
             Description = x.Description,
             OpHours = x.OpHours,
             Address = x.Address,
             Contact = x.Contact
         }).ToList();
     }
 }