private void AddRecordNotBelongToParentError(RecordError error) { ResponseBuilder.AddError( $"{GetLocalizedEntityName(error.ParentEntityType.Name)} - {GetLocalizedEntityName(error.EntityType.Name)} : {ApiResources.RecordNotBelongToParent}", $"{GetLocalizedEntityName(error.ParentEntityType.Name)} : {ApiResources.Id} = {error.ParentEntityId}", $"{GetLocalizedEntityName(error.EntityType.Name)} : {ApiResources.Id} = {error.EntityId}"); }
private void AddRecordNotFoundError(RecordError error) { ResponseBuilder.AddError( $"{GetLocalizedEntityName(error.EntityType.Name)} : {ApiResources.RecordNotFound}", $"{ApiResources.Id} = {error.EntityId}"); }