@@ -61,7 +61,7 @@ public async Task<IResponse<IDto>> GetByIdAsync<IDto>(int id)
6161 var data = await _unitOfWork . GetRepository < T > ( ) . GetByFilterAsync ( x => x . Id == id ) ;
6262 if ( data == null )
6363 {
64- return new Response < IDto > ( ResponseType . NotFound , $ "{ id } 'ye sahip data bulunamadı !") ;
64+ return new Response < IDto > ( ResponseType . NotFound , $ "{ id } has data not found !") ;
6565 }
6666 var dto = _mapper . Map < IDto > ( data ) ;
6767 return new Response < IDto > ( ResponseType . Success , dto ) ;
@@ -72,7 +72,7 @@ public async Task<IResponse> RemoveAsync(int id)
7272 var data = await _unitOfWork . GetRepository < T > ( ) . FindAsync ( id ) ;
7373 if ( data == null )
7474 {
75- return new Response ( ResponseType . NotFound , $ "{ id } idsine sahip data bulunamadı !") ;
75+ return new Response ( ResponseType . NotFound , $ "{ id } has data not found !") ;
7676 }
7777 _unitOfWork . GetRepository < T > ( ) . Remove ( data ) ;
7878 await _unitOfWork . SaveChangesAsync ( ) ;
@@ -87,7 +87,7 @@ public async Task<IResponse<UpdateDto>> UpdateAsync(UpdateDto dto)
8787 var unchangedData = await _unitOfWork . GetRepository < T > ( ) . FindAsync ( dto . Id ) ;
8888 if ( unchangedData == null )
8989 {
90- return new Response < UpdateDto > ( ResponseType . NotFound , $ "{ dto . Id } idsine sahip data bulunamadı !") ;
90+ return new Response < UpdateDto > ( ResponseType . NotFound , $ "{ dto . Id } has data not found !") ;
9191 }
9292 var entity = _mapper . Map < T > ( dto ) ;
9393 _unitOfWork . GetRepository < T > ( ) . Update ( entity , unchangedData ) ;
0 commit comments