public IEnumerable <ServiceAreaView> GetAllServiceArea()
        {
            GetAllServiceAreaResponse response = new GetAllServiceAreaResponse();

            response = _locationService.GetAllServiceArea();
            return(response.ServiceAreaViews);
        }
示例#2
0
        public GetAllServiceAreaResponse GetAllServiceArea()
        {
            GetAllServiceAreaResponse response = new GetAllServiceAreaResponse();

            IEnumerable <ServiceArea> serviceAreas = _serviceAreaRepository.FindAll();

            response.ServiceAreaViews = serviceAreas.ConvertToServiceAreaViewList();

            return(response);
        }