@@ -55,7 +55,7 @@ void ValidateCreateService(CreateService command)
5555 throw new Exception ( ) ;
5656 }
5757
58- public async Task < IEnumerable < ProviderDisplay > > GetProviderByServiceIdAsync ( int serviceId )
58+ public async Task < IEnumerable < ProviderDisplay > > GetProviderByServiceIdAsync ( Guid serviceId )
5959 {
6060 return await _providerRepository . GetProviderByServiceIdAsync ( serviceId ) ;
6161 }
@@ -106,12 +106,12 @@ private void ValidateProviderName(string? name)
106106 throw new ArgumentException ( ErrorMessageConstants . ShouldNotBeSmaller , nameof ( name ) ) ;
107107 }
108108
109- public async Task DeleteServiceAsync ( int serviceId )
109+ public async Task DeleteServiceAsync ( Guid serviceId )
110110 {
111111 await _serviceRepository . DeleteAsync ( serviceId ) ;
112112 }
113113
114- public async Task < ServiceDisplay ? > GetServiceByIdAsync ( int serviceId )
114+ public async Task < ServiceDisplay ? > GetServiceByIdAsync ( Guid serviceId )
115115 {
116116 return await _serviceRepository . GetServiceByIdAsync ( serviceId ) ;
117117 }
@@ -121,12 +121,12 @@ public async Task UpdateServiceAsync(UpdateService command)
121121 await _serviceRepository . UpdateServiceAsync ( command ) ;
122122 }
123123
124- public async Task < ProviderDisplay ? > GetProviderByIdAsync ( int providerId )
124+ public async Task < ProviderDisplay ? > GetProviderByIdAsync ( Guid providerId )
125125 {
126126 return await _providerRepository . GetProviderByIdAsync ( providerId ) ;
127127 }
128128
129- public async Task DeleteProviderAsync ( int providerId )
129+ public async Task DeleteProviderAsync ( Guid providerId )
130130 {
131131 await _providerRepository . DeleteAsync ( providerId ) ;
132132 }
0 commit comments