@@ -188,7 +188,7 @@ public class CustomersProcessorV1 extends libak_RestProcessor {
188188 ];
189189
190190 if (accounts. isEmpty()) {
191- return new libak_ErrorResponse(404 , ' Accounts are not found' , ' ' );
191+ return new libak_ErrorResponse(404 , ' Accounts are not found' );
192192 } else {
193193 return new libak_JsonResponse(accounts);
194194 }
@@ -213,7 +213,7 @@ public class CustomerProcessorV1 extends libak_RestProcessor {
213213 ];
214214
215215 if (accounts. isEmpty()) {
216- return new libak_ErrorResponse(404 , ' Accounts are not found' , ' ' );
216+ return new libak_ErrorResponse(404 , ' Account is not found' );
217217 } else {
218218 return new libak_JsonResponse(accounts. get(0 ));
219219 }
@@ -224,7 +224,7 @@ public class CustomerProcessorV1 extends libak_RestProcessor {
224224 List<Account > existingAccounts = [SELECT Id FROM Account WHERE Id = : accountId];
225225
226226 if (existingAccounts. isEmpty()) {
227- return new libak_ErrorResponse(404 , ' Account are not found' , ' ' );
227+ return new libak_ErrorResponse(404 , ' Account is not found' );
228228 }
229229
230230 Account updatedAccount = (Account )JSON . deserialize(this . request. requestBody. toString(), Account . class);
@@ -238,7 +238,7 @@ public class CustomerProcessorV1 extends libak_RestProcessor {
238238 List<Account > existingAccounts = [SELECT Id FROM Account WHERE Id = : accountId];
239239
240240 if (existingAccounts. isEmpty()) {
241- return new libak_ErrorResponse(404 , ' Account are not found' , ' ' );
241+ return new libak_ErrorResponse(404 , ' Account is not found' );
242242 }
243243
244244 delete existingAccounts. get(0 );
@@ -303,7 +303,7 @@ global with sharing class CustomerWebServiceDemo {
303303 ];
304304
305305 if (accounts. isEmpty()) {
306- return new libak_ErrorResponse(404 , ' Accounts are not found' , ' ' );
306+ return new libak_ErrorResponse(404 , ' Accounts are not found' );
307307 } else {
308308 return new libak_JsonResponse(accounts);
309309 }
@@ -326,7 +326,7 @@ global with sharing class CustomerWebServiceDemo {
326326 ];
327327
328328 if (accounts. isEmpty()) {
329- return new libak_ErrorResponse(404 , ' Accounts are not found' , ' ' );
329+ return new libak_ErrorResponse(404 , ' Account is not found' );
330330 } else {
331331 return new libak_JsonResponse(accounts. get(0 ));
332332 }
@@ -337,7 +337,7 @@ global with sharing class CustomerWebServiceDemo {
337337 List<Account > existingAccounts = [SELECT Id FROM Account WHERE Id = : accountId];
338338
339339 if (existingAccounts. isEmpty()) {
340- return new libak_ErrorResponse(404 , ' Account are not found' , ' ' );
340+ return new libak_ErrorResponse(404 , ' Account is not found' );
341341 }
342342
343343 Account updatedAccount = (Account )JSON . deserialize(this . request. requestBody. toString(), Account . class);
@@ -351,11 +351,11 @@ global with sharing class CustomerWebServiceDemo {
351351 List<Account > existingAccounts = [SELECT Id FROM Account WHERE Id = : accountId];
352352
353353 if (existingAccounts. isEmpty()) {
354- return new libak_ErrorResponse(404 , ' Account are not found' , ' ' );
354+ return new libak_ErrorResponse(404 , ' Account is not found' );
355355 }
356356
357357 delete existingAccounts. get(0 );
358- return new libak_SuccessResponse(' Account deleted successfully' );
358+ return new libak_SuccessResponse(' Account is deleted successfully' );
359359 }
360360 }
361361}
0 commit comments