@@ -131,7 +131,7 @@ public async Task<OperationResult> UpdateUser(UserRegisterModel userRegisterMode
131131 if ( user == null )
132132 {
133133 return new OperationResult ( false ,
134- _localizationService . GetString ( "UserNotFoundUserName" , userRegisterModel . UserName ) ) ;
134+ _localizationService . GetStringWithFormat ( "UserNotFoundUserName" , userRegisterModel . UserName ) ) ;
135135 }
136136
137137 var isAdmin = await _userManager . IsInRoleAsync ( user , EformRole . Admin ) ;
@@ -191,7 +191,7 @@ public async Task<OperationResult> UpdateUser(UserRegisterModel userRegisterMode
191191 }
192192
193193 return new OperationResult ( true ,
194- _localizationService . GetString ( "UserUserNameWasUpdated" , user . UserName ) ) ;
194+ _localizationService . GetStringWithFormat ( "UserUserNameWasUpdated" , user . UserName ) ) ;
195195 }
196196 catch ( Exception exception )
197197 {
@@ -208,7 +208,7 @@ public async Task<OperationResult> CreateUser(UserRegisterModel userRegisterMode
208208 if ( userResult != null )
209209 {
210210 return new OperationResult ( false ,
211- _localizationService . GetString ( "UserUserNameAlreadyExist" , userRegisterModel . UserName ) ) ;
211+ _localizationService . GetStringWithFormat ( "UserUserNameAlreadyExist" , userRegisterModel . UserName ) ) ;
212212 }
213213
214214 if ( ! _dbContext . SecurityGroups . Any ( x => x . Id == userRegisterModel . GroupId ) )
@@ -248,7 +248,7 @@ public async Task<OperationResult> CreateUser(UserRegisterModel userRegisterMode
248248 }
249249
250250 return new OperationResult ( true ,
251- _localizationService . GetString ( "UserUserNameWasCreated" , user . UserName ) ) ;
251+ _localizationService . GetStringWithFormat ( "UserUserNameWasCreated" , user . UserName ) ) ;
252252 }
253253 catch ( Exception exception )
254254 {
@@ -275,7 +275,7 @@ public async Task<OperationResult> DeleteUser(int userId)
275275
276276 if ( user == null )
277277 {
278- return new OperationResult ( false , _localizationService . GetString ( "UserUserNameNotFound" , userId ) ) ;
278+ return new OperationResult ( false , _localizationService . GetStringWithFormat ( "UserUserNameNotFound" , userId ) ) ;
279279 }
280280
281281 var result = await _userManager . DeleteAsync ( user ) ;
@@ -284,7 +284,7 @@ public async Task<OperationResult> DeleteUser(int userId)
284284 return new OperationResult ( false , string . Join ( " " , result . Errors . Select ( x=> x . Description ) . ToArray ( ) ) ) ;
285285 }
286286
287- return new OperationResult ( true , _localizationService . GetString ( "UserParamWasDeleted" , userId ) ) ;
287+ return new OperationResult ( true , _localizationService . GetStringWithFormat ( "UserParamWasDeleted" , userId ) ) ;
288288 }
289289 catch ( Exception exception )
290290 {
0 commit comments