public GetCentersResponse GetCenters(IList <Sort> sort) { GetCentersResponse response = new GetCentersResponse(); try { Response <Center> centers = _centerRepository.FindAllWithSort(-1, -1, sort); response.CenterViews = centers.data.ConvertToCenterViews(); } catch (Exception ex) { throw; } return(response); }